We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4d6bf commit 4379649Copy full SHA for 4379649
ui/accordion.js
@@ -361,10 +361,14 @@ return $.widget( "ui.accordion", {
361
maxHeight = 0;
362
this.headers.next()
363
.each( function() {
364
- var display = $( this ).css( "display" );
365
- $( this ).css( "display", "block" );
+ var isVisible = $( this ).is ( ":visible" );
+ if ( !isVisible ) {
366
+ $( this ).show();
367
+ }
368
maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
- $( this ).css( "display", display );
369
370
+ $( this ).hide();
371
372
} )
373
.height( maxHeight );
374
}
0 commit comments