Skip to content
Permalink
Browse files

accordion: Fix for #4695, refactored

  • Loading branch information
jzaefferer committed Aug 11, 2009
1 parent 4a62f13 commit 6681e7ba9804cca807c6a63d60c06db1a0765096
Showing with 1 addition and 2 deletions.
  1. +1 −2 ui/ui.accordion.js
@@ -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 ) {

0 comments on commit 6681e7b

Please sign in to comment.
You can’t perform that action at this time.