Fix for menu bar being broken if displayed after a window is ordered front in IE.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2010-03-31 17:04:35 -07:00
parent a347bfb8b1
commit c57aa2ac5e
+4 -3
View File
@@ -40,6 +40,10 @@ var screenNeedsInitialization = NO,
return;
screenNeedsInitialization = [CPPlatform isBrowser];
// We do this here because doing it later breaks IE.
if (document.documentElement)
document.documentElement.style.overflow = "hidden";
}
+ (BOOL)isBrowser
@@ -121,9 +125,6 @@ var screenNeedsInitialization = NO,
bodyElement.style.overflow = "hidden";
if (document.documentElement)
document.documentElement.style.overflow = "hidden";
[[CPNotificationCenter defaultCenter]
postNotificationName:CPPlatformDidClearBodyElementNotification
object:self];