]> source.dussan.org Git - jquery-ui.git/commitdiff
Revert "Dialog: Don't set specific dimensions on the overlay - let it expand based...
authorScott González <scott.gonzalez@gmail.com>
Wed, 21 Jul 2010 12:01:06 +0000 (08:01 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 21 Jul 2010 12:01:06 +0000 (08:01 -0400)
This reverts commit b548d34e14421176be49d218f40feb18c5bc8f49.

ui/jquery.ui.dialog.js

index 932f392951e65c67743b4c2819f3b7158970f942..ae96b2d8b9a608d65b4b6c72307f214e257046bc 100644 (file)
@@ -706,7 +706,11 @@ $.extend($.ui.dialog.overlay, {
                }
 
                var $el = (this.oldInstances.pop() || $('<div></div>').addClass('ui-widget-overlay'))
-                       .appendTo(document.body);
+                       .appendTo(document.body)
+                       .css({
+                               width: this.width(),
+                               height: this.height()
+                       });
 
                if ($.fn.bgiframe) {
                        $el.bgiframe();