-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
Description
Rounding the returned dimensions can cause trouble.
For example, I am using your observer to measure an element so I can fit a canvas element inside.
When the available space is fractional, the observer currently rounds up, and my resultant canvas is larger than its parent. Alas - unwanted scrollbars can result!
Maybe consider changing to returning the values without rounding?