]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Reduce old overlay dimensions to 0x0 to avoid sizing issues. Fixes #5637...
authorScott González <scott.gonzalez@gmail.com>
Wed, 18 May 2011 13:34:20 +0000 (09:34 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 18 May 2011 13:34:50 +0000 (09:34 -0400)
ui/jquery.ui.dialog.js

index 496118761d0ce15ed0298198c5f4a1943b318e59..4dd15438d10cbd364ea0446a86ee5ab1e19d4efd 100644 (file)
@@ -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;