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

Positioning of Simfinger overlay #12

Open
davidsteinberger opened this issue Dec 17, 2010 · 2 comments
Open

Positioning of Simfinger overlay #12

davidsteinberger opened this issue Dec 17, 2010 · 2 comments

Comments

@davidsteinberger
Copy link

Hi,
The tool is great.

However it positions itself (after start) vertically partly outside of my screen.
Can we fix this somehow?

Thanks,
David

@edentodd
Copy link

Same here... I have a 13 inch MacBook and the simfinger overlay loads too high. Is this the case of just tweaking a number in the code?

@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

3 participants