]> source.dussan.org Git - jquery-ui.git/commitdiff
accordion: reset overflow to original value after animation completed, fixes some...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 13 Oct 2008 15:20:26 +0000 (15:20 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 13 Oct 2008 15:20:26 +0000 (15:20 +0000)
ui/ui.accordion.js

index 0a20b1250189dac74e5406211e4d3116bff7519b..902a5654eedb62f0af2991090d6363b0a9e0d031 100644 (file)
@@ -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();
                                }
                        });