Here is the code I use before closing the dialog...
$('body').css('overflow','hidden');
$('.ui-widget-overlay').css('width','100%');
$('#content').removeClass('lightbox_bg');
$('#saveDialog').dialog('close');
This is my CSS code...
<style>
.lightbox_bg {
background:rgb(153,153,153) none repeat scroll 0 0;
left:0;
filter:alpha(opacity=50);
opacity: 0.5;
top:0;
width:100%;
z-index:50;
position:fixed;
}
.modal{
position:absolute;
z-index:51;
}
Even after opening the dialog, the scrollbar remains visible. However, upon closing the dialog, the scrollbar disappears while keeping the page in the same position. Any suggestions? Thank you.