Skip to content

Commit

Permalink
Revert "Dialog: Don't set specific dimensions on the overlay - let it…
Browse files Browse the repository at this point in the history
… expand based on 100% dimensions. Fixes #3623 - Opening a Modal Dialog shows a horizontal scroll bar."

This reverts commit b548d34.
  • Loading branch information
scottgonzalez committed Jul 21, 2010
1 parent b548d34 commit 70c4857
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/jquery.ui.dialog.js
Expand Up @@ -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();
Expand Down

0 comments on commit 70c4857

Please sign in to comment.