Skip to content

Commit 3294520

Browse files
committed
Accordion: Don't include the height of absolute/fixed positioned siblings when calculating size for heightStyle: fill.
1 parent 75b94a1 commit 3294520

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/jquery.ui.accordion.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,13 @@ $.widget( "ui.accordion", {
264264
}
265265
maxHeight = this.element.parent().height();
266266
this.element.siblings( ":visible" ).each(function() {
267-
maxHeight -= $( this ).outerHeight( true );
267+
var elem = $( this ),
268+
position = elem.css( "position" );
269+
270+
if ( position === "absolute" || position === "fixed" ) {
271+
return;
272+
}
273+
maxHeight -= elem.outerHeight( true );
268274
});
269275
if ($.browser.msie) {
270276
this.element.parent().css( "overflow", defOverflow );

0 commit comments

Comments
 (0)