fix bug in CPPlatformWindow where the visible frame for the platform window would offset itself for the menu bar height, even though no menu bar would be displayed because it's not the primaryPlatformWindow

This commit is contained in:
Randall Luecke
2009-12-20 15:44:39 -08:00
committed by Francisco Ryan Tolmasky I
parent 51b58f911e
commit e15cbfca33
+1 -1
View File
@@ -104,7 +104,7 @@ var PrimaryPlatformWindow = NULL;
frame.origin = CGPointMakeZero();
if ([CPMenu menuBarVisible])
if ([CPMenu menuBarVisible] && [CPPlatformWindow primaryPlatformWindow] === self)
{
var menuBarHeight = [[CPApp mainMenu] menuBarHeight];