diff --git a/AppKit/Platform/DOM/CPPlatform.j b/AppKit/Platform/DOM/CPPlatform.j index 98d7ca02e..2c2c971b4 100644 --- a/AppKit/Platform/DOM/CPPlatform.j +++ b/AppKit/Platform/DOM/CPPlatform.j @@ -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];