aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-26 14:32:28 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-26 14:32:28 -0400
commit17227498f49f88e34f0b918f4ccce08da81d47ad (patch)
tree3a005f9979c340182871699ab027eb156eee04a6 /ui
parent703d62f2982fb6ec2e85e5bf5e96be44b0544a34 (diff)
downloadjquery-ui-17227498f49f88e34f0b918f4ccce08da81d47ad.tar.gz
jquery-ui-17227498f49f88e34f0b918f4ccce08da81d47ad.zip
Accordion: Removed overflow workaround for IE6.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.accordion.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index b22f0c4e2..17ce155a8 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -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 );