aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-11-13 19:02:02 -0500
committerScott González <scott.gonzalez@gmail.com>2012-11-13 19:02:02 -0500
commit2553d61384a89a7aa3fcea2f185c2c7ec45d2bd1 (patch)
treecd40a8f50a425e6cdd5242aff74f7cdf021fb877
parentff055a0c353c3c8ce6e5bfa07ad7cb03e8885bc5 (diff)
downloadjquery-ui-2553d61384a89a7aa3fcea2f185c2c7ec45d2bd1.tar.gz
jquery-ui-2553d61384a89a7aa3fcea2f185c2c7ec45d2bd1.zip
Accordion: Use .css() to clear the height, instead of .height().
-rw-r--r--ui/jquery.ui.accordion.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 4ebc5b549..7914f7c5f 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -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 );
}