Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

SVGsizeissueinMozillaFirefox

I am trying to create reusable SVG vue component with implemented pan/zoom. I tried and got to this point:

https://codesandbox.io/s/9oq3mwo0vw

when I tried opening it it Firefox and ran into issue of not getting svg element size properly. In Chrome and on Edge it works OK. Does anyone have any tips on how get around that? Or how to get the width and Height of SVG element?

Thank you

Firefox v. 63.0.3 (64-bit)

Comments