Skip to content Skip to sidebar Skip to footer

Svg Getbbox Function Returns Zero In Firefox & Edge (but Not In Chrome)

I have an svg element (created with D3). while in chrome the 'getBBox' function works fabulously, it fails in fireFox and Edge. Thought I saw this discussion in couple of places(e

Solution 1:

Ok, i found what was wrong.

Chrome can handle "g" elements with "display : none". but Firefox and edge treat it as "non-existing/zero dimensions".

sorry for the fuss.

Post a Comment for "Svg Getbbox Function Returns Zero In Firefox & Edge (but Not In Chrome)"