Skip to content

Commit 1722749

Browse files
committed
Accordion: Removed overflow workaround for IE6.
1 parent 703d62f commit 1722749

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

ui/jquery.ui.accordion.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -283,20 +283,11 @@ $.widget( "ui.accordion", {
283283
},
284284

285285
refresh: function() {
286-
var maxHeight, overflow,
286+
var maxHeight,
287287
heightStyle = this.options.heightStyle,
288288
parent = this.element.parent();
289289

290-
291290
if ( heightStyle === "fill" ) {
292-
// IE 6 treats height like minHeight, so we need to turn off overflow
293-
// in order to get a reliable height
294-
// we use the minHeight support test because we assume that only
295-
// browsers that don't support minHeight will treat height as minHeight
296-
if ( !$.support.minHeight ) {
297-
overflow = parent.css( "overflow" );
298-
parent.css( "overflow", "hidden");
299-
}
300291
maxHeight = parent.height();
301292
this.element.siblings( ":visible" ).each(function() {
302293
var elem = $( this ),
@@ -307,9 +298,6 @@ $.widget( "ui.accordion", {
307298
}
308299
maxHeight -= elem.outerHeight( true );
309300
});
310-
if ( overflow ) {
311-
parent.css( "overflow", overflow );
312-
}
313301

314302
this.headers.each(function() {
315303
maxHeight -= $( this ).outerHeight( true );

0 commit comments

Comments
 (0)