Closed kum-deepak closed 2 years ago
Nods, Safari finally got ResizeObserver last year, so we can get rid of these workarounds.
Thanks, @gordonwoodhull for the quick feedback. I am also thinking of a single callback handling both width and height. This will make sense in most of the cases. On purpose, I picked an example where innerRadius
also needs to be adjusted.
I will come back to this after working on the Upgrade guide.
Closed in favor of #1858
While checking the resize test folder, I realize that we can simplify the code using ResizeObserver. This considers padding, borders, etc.
I will investigate later if this can be used as default in case
height
andwidth
are not explicitly set.