Skip to content

Commit

Permalink
Dialog: Don't set specific dimensions on the overlay - let it expand …
Browse files Browse the repository at this point in the history
…based on 100% dimensions. Fixes #3623 - Opening a Modal Dialog shows a horizontal scroll bar.
  • Loading branch information
scottgonzalez committed Jul 21, 2010
1 parent 8fa9ed7 commit b548d34
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ui/jquery.ui.dialog.js
Expand Up @@ -706,11 +706,7 @@ $.extend($.ui.dialog.overlay, {
}

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

if ($.fn.bgiframe) {
$el.bgiframe();
Expand Down

0 comments on commit b548d34

Please sign in to comment.