peity icon indicating copy to clipboard operation
peity copied to clipboard

SVGElement offsetWidth/offsetHeight deprecated

Open timdp opened this issue 9 years ago • 5 comments

With line charts, these lines are causing the following warnings in Chrome 48:

'SVGElement.offsetWidth' is deprecated and will be removed in M50, around April 2016. See https://www.chromestatus.com/features/5724912467574784 for more details. 'SVGElement.offsetHeight' is deprecated and will be removed in M50, around April 2016. See https://www.chromestatus.com/features/5724912467574784 for more details.

(jquery.js:5819)

You'll probably get the same for bar charts.

timdp avatar Jan 06 '16 09:01 timdp

Thanks for reporting.

benpickles avatar Jan 06 '16 10:01 benpickles

Should we expect a fix before deprecation? Thank you.

laguiz avatar Feb 09 '16 13:02 laguiz

I had a quick look at this when it was reported, it seems to be due to asking jQuery for the dimensions of a SVG element. I figured if I wait a while they might just fix it for me on their end!

benpickles avatar Feb 09 '16 21:02 benpickles

Totally make sense.

laguiz avatar Feb 09 '16 21:02 laguiz

Guess not ;-)

jquery/jquery#2889

z0mt3c avatar Feb 26 '16 13:02 z0mt3c