mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
accordion: Fix for #4695, refactored
This commit is contained in:
parent
4a62f131ab
commit
6681e7ba98
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user