I\'m using the jQuery UI dialog to present content in a new iFrame. Everything works out great except that the parent window of the dialog is getting a horizontal scrollbar whi
I had the same problem. In my case the dialog is a child of body and I used the following script to prevent overflow:
$("#your-dialog").dialog({
//our options,
open: function(){
$("body").css("overflow", "hidden");
},
close: function(){
$("body").css("overflow", "initial");
}
});
This seems to be a small bug in jQuery UI 1.7.2 and there is currently an open ticket (#3623) on the issue. Two solutions are proposed in the ticket comments:
Modify jquery-ui-1.7.2.custom.css:
.ui-widget-overlay
.position:fixed;
.Modify jquery-ui-1.7.2.custom.min.js:
addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});
on line 97..css({width:this.width(),height:this.height()})
.My first thought was overflow-x : hidden
and in my case in IE8 in standard mode as well as quirks mode it does the trick, horizontal bar disapears. All you need to to is put it on body tag.
overflow:hidden
?Posting the url to an online demo of the problem would help.