Skip to content

Commit 5d225dd

Browse files
committed
Accordion: correct height calculated when closed
Fixes #11938
1 parent f499569 commit 5d225dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/accordion.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,10 @@ return $.widget( "ui.accordion", {
361361
maxHeight = 0;
362362
this.headers.next()
363363
.each( function() {
364+
var display = $( this ).css( "display" );
365+
$( this ).css( "display", "block" );
364366
maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
367+
$( this ).css( "display", display );
365368
} )
366369
.height( maxHeight );
367370
}

0 commit comments

Comments
 (0)