From 32945202da1854a1b603db4994a263f4f789d398 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 19 Dec 2010 16:22:26 -0500 Subject: [PATCH] Accordion: Don't include the height of absolute/fixed positioned siblings when calculating size for heightStyle: fill. --- ui/jquery.ui.accordion.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 7dfc3523e..aed10168a 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -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 ); -- 2.39.5