]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Fixed resize method for autoHeight. Fixes #5406 - autoHeight resize not...
authorScott González <scott.gonzalez@gmail.com>
Tue, 13 Jul 2010 13:40:46 +0000 (09:40 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 13 Jul 2010 13:40:46 +0000 (09:40 -0400)
ui/jquery.ui.accordion.js

index c8025cbbf4a5a80f1899b8b61b6475083079494d..19d97d3cec5de808d545d78e6da2cb265b92676e 100644 (file)
@@ -236,7 +236,7 @@ $.widget("ui.accordion", {
                } else if ( o.autoHeight ) {
                        maxHeight = 0;
                        this.headers.next().each(function() {
-                               maxHeight = Math.max(maxHeight, $(this).height());
+                               maxHeight = Math.max(maxHeight, $(this).height("").height());
                        }).height(maxHeight);
                }