diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-12-19 16:22:26 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-12-19 16:22:26 -0500 |
commit | 32945202da1854a1b603db4994a263f4f789d398 (patch) | |
tree | d3899fd5c64a8fbdba40ac291374d66f326ba211 /ui | |
parent | 75b94a1c12277b024ed1833ef20aa893bcfb379c (diff) | |
download | jquery-ui-32945202da1854a1b603db4994a263f4f789d398.tar.gz jquery-ui-32945202da1854a1b603db4994a263f4f789d398.zip |
Accordion: Don't include the height of absolute/fixed positioned siblings when calculating size for heightStyle: fill.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.accordion.js | 8 |
1 files changed, 7 insertions, 1 deletions
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 ); |