Skip to content

Window.wasResized() always returns false #5

@AlexanderJCS

Description

@AlexanderJCS

I noticed that Window.wasResized() always returns false, even when the window was resized. To check for a resized window, I had to come up with this workaround:

// Since Window.wasResized() always evaluates to false this is my workaround

if (this.windowSize == null) {
    this.windowSize = Window.getWindowSize();
}

if (this.windowSize.equals(Window.getWindowSize())) {
    return;
}

I'm not sure why Window exhibits this behavior since Window.getWindowSize() is updated correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions