Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

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

@jonbot

Description

@jonbot

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions