Skip to content

Commit a0f16a0

Browse files
committed
Dialog: Reduce old overlay dimensions to 0x0 to avoid sizing issues. Fixes #5637 - Dialog: Dimensions of reused overlay may cause scrollbars.
1 parent fef60bd commit a0f16a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ $.extend( $.ui.dialog.overlay, {
742742
$( [ document, window ] ).unbind( ".dialog-overlay" );
743743
}
744744

745-
$el.remove();
745+
$el.height( 0 ).width( 0 ).remove();
746746

747747
// adjust the maxZ to allow other modal dialogs to continue to work (see #4309)
748748
var maxZ = 0;

0 commit comments

Comments
 (0)