Accordion: Use .css() to clear the height, instead of .height().

(cherry picked from commit 2553d61384)
This commit is contained in:
Scott González 2012-11-13 19:02:02 -05:00
parent 5046bb99aa
commit 3175d7d1c2

View File

@ -325,7 +325,7 @@ $.widget( "ui.accordion", {
maxHeight = 0;
this.headers.next()
.each(function() {
maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() );
maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
})
.height( maxHeight );
}