SimFinger icon indicating copy to clipboard operation
SimFinger copied to clipboard

iphone simulator position when screen resoultion is 1280 x 800

Open huntrax11 opened this issue 14 years ago • 1 comments

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.

huntrax11 avatar Feb 10 '11 12:02 huntrax11

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)

adamaxe avatar Mar 24 '11 02:03 adamaxe