]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Removed overflow workaround for IE6.
authorScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 18:32:28 +0000 (14:32 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 18:32:28 +0000 (14:32 -0400)
ui/jquery.ui.accordion.js

index b22f0c4e287df6fc18be6285b978edb28d70f26e..17ce155a87f0394483f2a62031010848fee1a1c0 100644 (file)
@@ -283,20 +283,11 @@ $.widget( "ui.accordion", {
        },
 
        refresh: function() {
-               var maxHeight, overflow,
+               var maxHeight,
                        heightStyle = this.options.heightStyle,
                        parent = this.element.parent();
 
-
                if ( heightStyle === "fill" ) {
-                       // IE 6 treats height like minHeight, so we need to turn off overflow
-                       // in order to get a reliable height
-                       // we use the minHeight support test because we assume that only
-                       // browsers that don't support minHeight will treat height as minHeight
-                       if ( !$.support.minHeight ) {
-                               overflow = parent.css( "overflow" );
-                               parent.css( "overflow", "hidden");
-                       }
                        maxHeight = parent.height();
                        this.element.siblings( ":visible" ).each(function() {
                                var elem = $( this ),
@@ -307,9 +298,6 @@ $.widget( "ui.accordion", {
                                }
                                maxHeight -= elem.outerHeight( true );
                        });
-                       if ( overflow ) {
-                               parent.css( "overflow", overflow );
-                       }
 
                        this.headers.each(function() {
                                maxHeight -= $( this ).outerHeight( true );