Skip to content

Commit 2553d61

Browse files
committed
Accordion: Use .css() to clear the height, instead of .height().
1 parent ff055a0 commit 2553d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.accordion.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ $.widget( "ui.accordion", {
346346
maxHeight = 0;
347347
this.headers.next()
348348
.each(function() {
349-
maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() );
349+
maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
350350
})
351351
.height( maxHeight );
352352
}

0 commit comments

Comments
 (0)