Skip to content
Permalink
Browse files

Dialog: Reduce old overlay dimensions to 0x0 to avoid sizing issues. …

…Fixes #5637 - Dialog: Dimensions of reused overlay may cause scrollbars.
  • Loading branch information
scottgonzalez committed May 18, 2011
1 parent fef60bd commit a0f16a00b9398f123dbb5e027b21b04af13fcc1b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit a0f16a0

Please sign in to comment.
You can’t perform that action at this time.