aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2008-10-13 15:20:26 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2008-10-13 15:20:26 +0000
commite24e2aeb7b7a0735264c74352f945634e4beee81 (patch)
tree3b9686e5b8fa08ed054df840f999e8cecd553d57 /ui
parent4416773888bf7491f89d788ba92ede862719c605 (diff)
downloadjquery-ui-e24e2aeb7b7a0735264c74352f945634e4beee81.tar.gz
jquery-ui-e24e2aeb7b7a0735264c74352f945634e4beee81.zip
accordion: reset overflow to original value after animation completed, fixes some layout issues
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.accordion.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js
index 0a20b1250..902a5654e 100644
--- a/ui/ui.accordion.js
+++ b/ui/ui.accordion.js
@@ -293,6 +293,7 @@ $.extend($.ui.accordion, {
difference = showHeight / hideHeight,
padding = options.toShow.outerHeight() - options.toShow.height(),
margin = options.toShow.css('marginBottom'),
+ overflow = options.toShow.css('overflow')
tmargin = options.toShow.css('marginTop');
options.toShow.css({ height: 0, overflow: 'hidden', marginTop: 0, marginBottom: -padding }).show();
options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate({height:"hide"},{
@@ -309,7 +310,7 @@ $.extend($.ui.accordion, {
if ( !options.autoHeight ) {
options.toShow.css("height", "auto");
}
- options.toShow.css({marginTop: tmargin, marginBottom: margin});
+ options.toShow.css({marginTop: tmargin, marginBottom: margin, overflow: overflow});
options.complete();
}
});