rive-react icon indicating copy to clipboard operation
rive-react copied to clipboard

use getBoundingClientRect to account for decimals in container size

Open bodymovin opened this issue 1 year ago • 0 comments

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

bodymovin avatar May 28 '24 22:05 bodymovin