Skip to content

Commit 83ae561

Browse files
committed
Update dialog.js
Update dialog.js
1 parent 473edf3 commit 83ae561

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ui/widgets/dialog.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,9 @@ $.widget( "ui.dialog", {
463463
event.preventDefault();
464464
this.options.restoreWidth = this.options.width;
465465
this.options.restoreHeight = this.options.height;
466-
this.uiDialog.width( this.uiDialogTitlebar.outerWidth() > 300 ? 300 : this.uiDialogTitlebar.outerWidth() );
466+
this.uiDialog.width( this.uiDialogTitlebar.outerWidth() > 300 ?
467+
300 :
468+
this.uiDialogTitlebar.outerWidth() );
467469
this.uiDialog.height( this.uiDialogTitlebar.outerHeight() );
468470
this.element.hide();
469471
this.uiDialogButtonPane.hide();
@@ -483,11 +485,13 @@ $.widget( "ui.dialog", {
483485
click: function( event ) {
484486
event.preventDefault();
485487
if ( this.options.restoreWidth !== undefined &&
486-
this.options.restoreWidth !== null && this.options.restoreWidth !== "" ) {
488+
this.options.restoreWidth !== null &&
489+
this.options.restoreWidth !== "" ) {
487490
this.uiDialog.width( this.options.restoreWidth );
488491
}
489492
if ( this.options.restoreHeight !== undefined &&
490-
this.options.restoreHeight !== null && this.options.restoreHeight !== "" ) {
493+
this.options.restoreHeight !== null &&
494+
this.options.restoreHeight !== "" ) {
491495
this.uiDialog.height( this.options.restoreHeight );
492496
}
493497
this.element.show();

0 commit comments

Comments
 (0)