mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Don't include the height of absolute/fixed positioned siblings when calculating size for heightStyle: fill.
This commit is contained in:
parent
75b94a1c12
commit
32945202da
8
ui/jquery.ui.accordion.js
vendored
8
ui/jquery.ui.accordion.js
vendored
@ -264,7 +264,13 @@ $.widget( "ui.accordion", {
|
||||
}
|
||||
maxHeight = this.element.parent().height();
|
||||
this.element.siblings( ":visible" ).each(function() {
|
||||
maxHeight -= $( this ).outerHeight( true );
|
||||
var elem = $( this ),
|
||||
position = elem.css( "position" );
|
||||
|
||||
if ( position === "absolute" || position === "fixed" ) {
|
||||
return;
|
||||
}
|
||||
maxHeight -= elem.outerHeight( true );
|
||||
});
|
||||
if ($.browser.msie) {
|
||||
this.element.parent().css( "overflow", defOverflow );
|
||||
|
Loading…
Reference in New Issue
Block a user