Skip to content

Watch for window resize #7

Open

Description

@sakin

If instead of a fixed width, they use something like flexbox to dynamically expand the height, we'll want to watch for window resize because that will cause the height of the grid to change and we have to recalculate

Activity

  1. leighhalliday commented on Dec 4, 2023

    @leighhalliday
    Collaborator

    Winston Ly (@sakin) in the connect method we bind to the window resize event and request a re-render, if you need to do anything further I think this could call out to a specific handleResize method that does some calculations before calling requestRender.

    this.bindEvent(window, "resize", this.requestRender);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions