Skip to content

Commit

Permalink
Accordion: Animate padding when only showing/hiding a single panel. F…
Browse files Browse the repository at this point in the history
…ixes #5540 - Accordion: Jumpy animation when opening a panel after closing all.
  • Loading branch information
scottgonzalez committed Jul 14, 2010
1 parent 21aad10 commit e895d86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.accordion.js
Expand Up @@ -452,11 +452,11 @@ $.extend($.ui.accordion, {
duration: 300
}, options, additions);
if ( !options.toHide.size() ) {
options.toShow.animate({height: "show"}, options);
options.toShow.animate({height: "show", paddingTop: "show", paddingBottom: "show"}, options);
return;
}
if ( !options.toShow.size() ) {
options.toHide.animate({height: "hide"}, options);
options.toHide.animate({height: "hide", paddingTop: "hide", paddingBottom: "hide"}, options);
return;
}
var overflow = options.toShow.css('overflow'),
Expand Down

0 comments on commit e895d86

Please sign in to comment.