It seems like a crucial matter that needs attention. My dialog has an overlay with specific width settings as shown below:
.ui-widget-overlay
{
width: 518px !important;
}
The height of the overlay will vary based on the page size controlled by JavaScript (two possible sizes)
if (!placeHolderVisibility) {
//Code
$('.ui-widget-overlay').addClass('overlayLarge');
} else {
//Code
$('.ui-widget-overlay').addClass('overlaySmall');
}
Below are the CSS rules for overlaySmall
and overlayLarge
:
.overlaySmall
{
height: 985px !important;
}
.overlayLarge
{
height: 1167px !important;
}
This issue is only present on certain pages with dialog boxes.
.ui-widget-overlay
{
height: 413px !important;
width: 510px !important;
}
Inspecting the overlay in firebug reveals that the !important
declaration is missing from the css, causing difficulty in obtaining the initial height due to rapid expansion
Edit I suspect it might be related to Facebook's auto resize feature
FB.init({ appId: appid, status: true, cookie: true, xfbml: true });
FB.Canvas.setAutoResize(); //<-- Could this be the cause??
Any recommendations or suggestions?