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

macgap.window.isMaximized() unreliable on Yosemite #140

Open
jonbot opened this issue Mar 27, 2015 · 0 comments
Open

macgap.window.isMaximized() unreliable on Yosemite #140

jonbot opened this issue Mar 27, 2015 · 0 comments

Comments

@jonbot
Copy link

jonbot commented Mar 27, 2015

First of all, MacGap is amazing. Have to get that out of the way.

I know that all new development is going into MacGap 2, but I wanted to post here in case anyone else runs into this issue.

I've found that on Yosemite, macgap.window.isMaximized() sometimes returns 0 when the window is maximized and sometimes returns 1 when the window is not maximized.

I don't know enough about Cocoa to say why this is, but am thinking a good workaround at this point is to use javascript/jQuery w/o the MacGap commands:

var myIsMaximized = screen.height == $(window).height() && screen.width == $(window).width();

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

1 participant