From b548d34e14421176be49d218f40feb18c5bc8f49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 20 Jul 2010 22:05:05 -0400 Subject: [PATCH] Dialog: Don't set specific dimensions on the overlay - let it expand based on 100% dimensions. Fixes #3623 - Opening a Modal Dialog shows a horizontal scroll bar. --- ui/jquery.ui.dialog.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index ae96b2d8b..932f39295 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -706,11 +706,7 @@ $.extend($.ui.dialog.overlay, { } var $el = (this.oldInstances.pop() || $('
').addClass('ui-widget-overlay')) - .appendTo(document.body) - .css({ - width: this.width(), - height: this.height() - }); + .appendTo(document.body); if ($.fn.bgiframe) { $el.bgiframe(); -- 2.39.5