Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

iphone simulator position when screen resoultion is 1280 x 800 #16

Open
huntrax11 opened this issue Feb 10, 2011 · 1 comment
Open

iphone simulator position when screen resoultion is 1280 x 800 #16

huntrax11 opened this issue Feb 10, 2011 · 1 comment

Comments

@huntrax11
Copy link

Would you check the iphone simulator's position and frames when screen resoultion is iphone simulator position when screen resoultion is 1280 x 800(13" MacBook and 13" MacBook Pro's) ?
Frame and iphone simulator seems clipped to me.

@adamaxe
Copy link

adamaxe commented Mar 24, 2011

I'll submit a real fix when I get a chance, but here's a nasty hack. I've found if you subtract 110 px from y, it lines up nice. For now:

Change repositioning of Simulator
line 161:
Change

point.y = screenRect.size.height - size.height - 135 - 13;

To

point.y = screenRect.size.height - size.height - 25 - 13;

Change various overlays

hardwareOverlay = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 634, 985) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];

pointerOverlay = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 50, 50) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];

fadeOverlay = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 634, 985) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];

Change the NSMakeRect to:

NSMakeRect(0, -110, 634, 985)

NSMakeRect(0, -110, 50, 50)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants