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 e01664a commit b9e34f7Copy full SHA for b9e34f7
ui/jquery.ui.dialog.js
@@ -633,7 +633,8 @@ $.widget("ui.dialog", {
633
*/
634
var options = this.options,
635
nonContentHeight,
636
- minContentHeight;
+ minContentHeight,
637
+ isVisible = this.uiDialog.is( ":visible" );
638
639
// reset content sizing
640
this.element.show().css({
@@ -665,7 +666,9 @@ $.widget("ui.dialog", {
665
666
} else {
667
this.uiDialog.show();
668
var autoHeight = this.element.css( "height", "auto" ).height();
- this.uiDialog.hide();
669
+ if ( !isVisible ) {
670
+ this.uiDialog.hide();
671
+ }
672
this.element.height( Math.max( autoHeight, minContentHeight ) );
673
}
674
0 commit comments