Skip to content

Commit

Permalink
Dialog: Reduce old overlay dimensions to 0x0 to avoid sizing issues. …
Browse files Browse the repository at this point in the history
…Fixes #5637 - Dialog: Dimensions of reused overlay may cause scrollbars.
  • Loading branch information
scottgonzalez committed May 18, 2011
1 parent fef60bd commit a0f16a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0f16a0

Please sign in to comment.