aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Mroziński <mrozik87@gmail.com>2012-10-21 22:24:50 +0200
committerScott González <scott.gonzalez@gmail.com>2012-10-23 14:11:22 -0400
commitf4b3cd527116b25d4d6f44c2df0f2c472b961e6a (patch)
treedc7e4363e795bf4025d3a63b4360a992f6da4bb5
parent8bb05d23e2c49ecbe2f83a3552efb0a93c48bb85 (diff)
downloadjquery-ui-f4b3cd527116b25d4d6f44c2df0f2c472b961e6a.tar.gz
jquery-ui-f4b3cd527116b25d4d6f44c2df0f2c472b961e6a.zip
Accordion: Remove code that sets accordion height. Fixed #8696 - Multiple collapsible Accordions won't work together.
-rw-r--r--ui/jquery.ui.accordion.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 108647419..fd3a983b8 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -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 ) {