Skip to content

Commit 3175d7d

Browse files
committed
Accordion: Use .css() to clear the height, instead of .height().
(cherry picked from commit 2553d61)
1 parent 5046bb9 commit 3175d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.accordion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ $.widget( "ui.accordion", {
325325
maxHeight = 0;
326326
this.headers.next()
327327
.each(function() {
328-
maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() );
328+
maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
329329
})
330330
.height( maxHeight );
331331
}

0 commit comments

Comments
 (0)