aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.accordion.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-02-26 22:04:21 -0500
committerScott González <scott.gonzalez@gmail.com>2012-02-26 22:04:21 -0500
commit1e291c92cd1a90f2a2ad5796f1ccace615538098 (patch)
treed4761a1028d72778188b09b8a75ff15ac06d3d67 /ui/jquery.ui.accordion.js
parent3f56f8dfc6a7b282f73b61cc710253256014fddf (diff)
downloadjquery-ui-1e291c92cd1a90f2a2ad5796f1ccace615538098.tar.gz
jquery-ui-1e291c92cd1a90f2a2ad5796f1ccace615538098.zip
Accordion: Reset height prior to calculations on refresh.
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r--ui/jquery.ui.accordion.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 00acf2d10..01600ba4e 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -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