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 authored and Francisco Ryan Tolmasky I committed 2009-12-20 15:44:39 -08:00
1 parent 51b58f911e
commit e15cbfca33
1 file changed
+1 -1
+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];