mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Remove code that sets accordion height. Fixed #8696 - Multiple collapsible Accordions won't work together.
This commit is contained in:
parent
8bb05d23e2
commit
f4b3cd5271
7
ui/jquery.ui.accordion.js
vendored
7
ui/jquery.ui.accordion.js
vendored
@ -75,7 +75,6 @@ $.widget( "ui.accordion", {
|
||||
.show();
|
||||
|
||||
this._createIcons();
|
||||
this.originalHeight = this.element[0].style.height;
|
||||
this.refresh();
|
||||
|
||||
// ARIA
|
||||
@ -198,7 +197,6 @@ $.widget( "ui.accordion", {
|
||||
}
|
||||
});
|
||||
if ( this.options.heightStyle !== "content" ) {
|
||||
this.element.css( "height", this.originalHeight );
|
||||
contents.css( "height", "" );
|
||||
}
|
||||
},
|
||||
@ -289,7 +287,6 @@ $.widget( "ui.accordion", {
|
||||
heightStyle = this.options.heightStyle,
|
||||
parent = this.element.parent();
|
||||
|
||||
this.element.css( "height", this.originalHeight );
|
||||
|
||||
if ( heightStyle === "fill" ) {
|
||||
// IE 6 treats height like minHeight, so we need to turn off overflow
|
||||
@ -332,10 +329,6 @@ $.widget( "ui.accordion", {
|
||||
})
|
||||
.height( maxHeight );
|
||||
}
|
||||
|
||||
if ( heightStyle !== "content" ) {
|
||||
this.element.height( this.element.height() );
|
||||
}
|
||||
},
|
||||
|
||||
_activate: function( index ) {
|
||||
|
Loading…
Reference in New Issue
Block a user