diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-18 09:34:20 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-18 09:34:50 -0400 |
commit | a0f16a00b9398f123dbb5e027b21b04af13fcc1b (patch) | |
tree | 94f5d62d6a193267a6ba9e060d6c328083b13604 /ui/jquery.ui.dialog.js | |
parent | fef60bd6cb4352d0106ae00753458112f1ab3b78 (diff) | |
download | jquery-ui-a0f16a00b9398f123dbb5e027b21b04af13fcc1b.tar.gz jquery-ui-a0f16a00b9398f123dbb5e027b21b04af13fcc1b.zip |
Dialog: Reduce old overlay dimensions to 0x0 to avoid sizing issues. Fixes #5637 - Dialog: Dimensions of reused overlay may cause scrollbars.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 496118761..4dd15438d 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -742,7 +742,7 @@ $.extend( $.ui.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) var maxZ = 0; |