Skip to content

Commit

Permalink
Accordion: Removed overflow workaround for IE6.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Oct 26, 2012
1 parent 703d62f commit 1722749
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions ui/jquery.ui.accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand All @@ -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 );
Expand Down

0 comments on commit 1722749

Please sign in to comment.