Skip to content

Resize method should be async #110

Description

@NitnerocL

PanelContainer and TabHost make use of requestAnimationFrame in their resize implementation to to defer part of the processing until after the DOM has recalculated the dimensions. Those functions should either be rewritten to compute all sizes by hand and avoid relying on the DOM render (if applicable); or return a Promise, in order to:

  • state explicitly that their processing is delayed
  • allow consumers to wait for the resizing to complete before processing further, thus avoiding potential race conditions.

Those changes should be propagated through the entire resize call chain though.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions