mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Reduce old overlay dimensions to 0x0 to avoid sizing issues. Fixes #5637 - Dialog: Dimensions of reused overlay may cause scrollbars.
This commit is contained in:
parent
fef60bd6cb
commit
a0f16a00b9
2
ui/jquery.ui.dialog.js
vendored
2
ui/jquery.ui.dialog.js
vendored
@ -742,7 +742,7 @@ $.extend( $.ui.dialog.overlay, {
|
|||||||
$( [ document, window ] ).unbind( ".dialog-overlay" );
|
$( [ document, window ] ).unbind( ".dialog-overlay" );
|
||||||
}
|
}
|
||||||
|
|
||||||
$el.remove();
|
$el.height( 0 ).width( 0 ).remove();
|
||||||
|
|
||||||
// adjust the maxZ to allow other modal dialogs to continue to work (see #4309)
|
// adjust the maxZ to allow other modal dialogs to continue to work (see #4309)
|
||||||
var maxZ = 0;
|
var maxZ = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user