You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
The text was updated successfully, but these errors were encountered:
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();
The text was updated successfully, but these errors were encountered: