Skip to content

Commit

Permalink
accordion: Fix for #4695, refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Aug 11, 2009
1 parent 4a62f13 commit 6681e7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/ui.accordion.js
Expand Up @@ -217,8 +217,7 @@ $.widget("ui.accordion", {
});

this.headers.next().each(function() {
var padding = $(this).innerHeight() - $(this).height();
$(this).height(Math.max(0, maxHeight - padding));
$(this).height(Math.max(0, maxHeight - $(this).innerHeight() + $(this).height()));
}).css('overflow', 'auto');

} else if ( o.autoHeight ) {
Expand Down

0 comments on commit 6681e7b

Please sign in to comment.