Skip to main content

[Question] getBoundingClientRect delay needed?

Comments

1 comment

  • Richard Smuts

    In my experience you need to call engine.executeImmediateLayoutSync() after setting styles if you wish to immediately re-read the resultant bounding box generated from those styles.

    However, this may or may not impact your UI's performance depending on how complex it is.

    1

Please sign in to leave a comment.