Skip to content

Commit 70c4857

Browse files
committed
Revert "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."
This reverts commit b548d34.
1 parent b548d34 commit 70c4857

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/jquery.ui.dialog.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,11 @@ $.extend($.ui.dialog.overlay, {
706706
}
707707

708708
var $el = (this.oldInstances.pop() || $('<div></div>').addClass('ui-widget-overlay'))
709-
.appendTo(document.body);
709+
.appendTo(document.body)
710+
.css({
711+
width: this.width(),
712+
height: this.height()
713+
});
710714

711715
if ($.fn.bgiframe) {
712716
$el.bgiframe();

0 commit comments

Comments
 (0)