]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Use .css() to clear the height, instead of .height().
authorScott González <scott.gonzalez@gmail.com>
Wed, 14 Nov 2012 00:02:02 +0000 (19:02 -0500)
committerScott González <scott.gonzalez@gmail.com>
Wed, 14 Nov 2012 00:02:02 +0000 (19:02 -0500)
ui/jquery.ui.accordion.js

index 4ebc5b5493086c705b80eb71fd97a72e479bbf60..7914f7c5ffa5e432dc83fdc91f76c1dfffe129a2 100644 (file)
@@ -346,7 +346,7 @@ $.widget( "ui.accordion", {
                        maxHeight = 0;
                        this.headers.next()
                                .each(function() {
-                                       maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() );
+                                       maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
                                })
                                .height( maxHeight );
                }