Skip to content

Commit b548d34

Browse files
committed
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.
1 parent 8fa9ed7 commit b548d34

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ui/jquery.ui.dialog.js

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

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

715711
if ($.fn.bgiframe) {
716712
$el.bgiframe();

0 commit comments

Comments
 (0)