]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Reset height prior to calculations on refresh.
authorScott González <scott.gonzalez@gmail.com>
Mon, 27 Feb 2012 03:04:21 +0000 (22:04 -0500)
committerScott González <scott.gonzalez@gmail.com>
Mon, 27 Feb 2012 03:04:21 +0000 (22:04 -0500)
ui/jquery.ui.accordion.js

index 00acf2d1028404f87a7982d3eed5c856c3f9f618..01600ba4e98601ca2f8936055b9117b551186e93 100644 (file)
@@ -236,6 +236,8 @@ $.widget( "ui.accordion", {
                        maxHeight,
                        overflow;
 
+               this.element.css( "height", this.originalHeight );
+
                if ( heightStyle === "fill" ) {
                        // IE 6 treats height like minHeight, so we need to turn off overflow
                        // in order to get a reliable height