Skip to content

Conversation

@bodymovin
Copy link
Contributor

@bodymovin bodymovin commented May 28, 2024

clientWidth and clientHeight return element size without the decimals.
getBoundingClientRect instead returns a more precise size that we can use to make sure the canvas is not slightly smaller than the container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants