mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Accordion: Removed overflow workaround for IE6.
This commit is contained in:
parent
703d62f298
commit
17227498f4
14
ui/jquery.ui.accordion.js
vendored
14
ui/jquery.ui.accordion.js
vendored
@ -283,20 +283,11 @@ $.widget( "ui.accordion", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
refresh: function() {
|
refresh: function() {
|
||||||
var maxHeight, overflow,
|
var maxHeight,
|
||||||
heightStyle = this.options.heightStyle,
|
heightStyle = this.options.heightStyle,
|
||||||
parent = this.element.parent();
|
parent = this.element.parent();
|
||||||
|
|
||||||
|
|
||||||
if ( heightStyle === "fill" ) {
|
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();
|
maxHeight = parent.height();
|
||||||
this.element.siblings( ":visible" ).each(function() {
|
this.element.siblings( ":visible" ).each(function() {
|
||||||
var elem = $( this ),
|
var elem = $( this ),
|
||||||
@ -307,9 +298,6 @@ $.widget( "ui.accordion", {
|
|||||||
}
|
}
|
||||||
maxHeight -= elem.outerHeight( true );
|
maxHeight -= elem.outerHeight( true );
|
||||||
});
|
});
|
||||||
if ( overflow ) {
|
|
||||||
parent.css( "overflow", overflow );
|
|
||||||
}
|
|
||||||
|
|
||||||
this.headers.each(function() {
|
this.headers.each(function() {
|
||||||
maxHeight -= $( this ).outerHeight( true );
|
maxHeight -= $( this ).outerHeight( true );
|
||||||
|
Loading…
Reference in New Issue
Block a user