Skip to content

Commit

Permalink
Accordion: correct height calculated when closed
Browse files Browse the repository at this point in the history
Fixes #11938
  • Loading branch information
apushak committed Apr 13, 2015
1 parent f499569 commit 5d225dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ return $.widget( "ui.accordion", {
maxHeight = 0;
this.headers.next()
.each( function() {
var display = $( this ).css( "display" );
$( this ).css( "display", "block" );
maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
$( this ).css( "display", display );
} )
.height( maxHeight );
}
Expand Down

0 comments on commit 5d225dd

Please sign in to comment.