File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,9 @@ $.widget( "ui.dialog", {
463
463
event . preventDefault ( ) ;
464
464
this . options . restoreWidth = this . options . width ;
465
465
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 ( ) ) ;
467
469
this . uiDialog . height ( this . uiDialogTitlebar . outerHeight ( ) ) ;
468
470
this . element . hide ( ) ;
469
471
this . uiDialogButtonPane . hide ( ) ;
@@ -483,11 +485,13 @@ $.widget( "ui.dialog", {
483
485
click : function ( event ) {
484
486
event . preventDefault ( ) ;
485
487
if ( this . options . restoreWidth !== undefined &&
486
- this . options . restoreWidth !== null && this . options . restoreWidth !== "" ) {
488
+ this . options . restoreWidth !== null &&
489
+ this . options . restoreWidth !== "" ) {
487
490
this . uiDialog . width ( this . options . restoreWidth ) ;
488
491
}
489
492
if ( this . options . restoreHeight !== undefined &&
490
- this . options . restoreHeight !== null && this . options . restoreHeight !== "" ) {
493
+ this . options . restoreHeight !== null &&
494
+ this . options . restoreHeight !== "" ) {
491
495
this . uiDialog . height ( this . options . restoreHeight ) ;
492
496
}
493
497
this . element . show ( ) ;
You can’t perform that action at this time.
0 commit comments