accordion: Fix for #4695, refactored

This commit is contained in:
Jörn Zaefferer 2009-08-11 19:08:23 +00:00
parent 4a62f131ab
commit 6681e7ba98

View File

@ -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 ) {