Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad window button positioning on Yosemite #194

Open
mackuba opened this issue Nov 6, 2014 · 4 comments
Open

bad window button positioning on Yosemite #194

mackuba opened this issue Nov 6, 2014 · 4 comments

Comments

@mackuba
Copy link

mackuba commented Nov 6, 2014

I've run my app (built on Xcode 6.1) on Yosemite, and I've noticed that the three buttons in the top-left are positioned incorrectly - they sit in the top-left part of the title bar like in standard apps, and they jump to center-left of the bar when the window is moved. Is this a known issue (or something you've fixed on master)?

@mackuba
Copy link
Author

mackuba commented Nov 6, 2014

screen shot 2014-11-06 at 15 04 58 screen shot 2014-11-06 at 15 05 07

@ThanosSiopoudis
Copy link

I also get this issue, and the same behaviour is observed when buttons are in traffic light mode, i.e. they don't change to traffic lights until the window is moved.

@ThanosSiopoudis
Copy link

Quick (and dirty) workaround until a fix becomes available:

__unsafe_unretained typeof (self) weakSelf = self;
self.window.titleBarDrawingBlock = ^(BOOL drawsAsMainWindow, CGRect drawingRect, CGRectEdge rectEdge, CGPathRef clippingPath) {
    [[NSNotificationCenter defaultCenter] postNotificationName:NSWindowDidMoveNotification object:weakSelf.window];
}

@berkcebi
Copy link

berkcebi commented Mar 9, 2015

Same issue here. 👍

One other thing to note: It fixes itself when you move (or resign/make key) the window, yet the buttons' tracking area stays in the wrong location.

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

No branches or pull requests

3 participants