Snap.svg icon indicating copy to clipboard operation
Snap.svg copied to clipboard

Different Position from getBBox();

Open richardlowenthal opened this issue 5 years ago • 1 comments

We're trying to get the position of a svg element using getbbox().

For example, we have an elementLogo at x y = 484, 247.

When I use this:

var logoSnapNew = Snap(elementLogo); var cBoxLogoNew = logoSnapNew.getBBox();

It returns 247, 117 instead and the elementLogo is placed a different location. Appreciate any help.

richardlowenthal avatar Sep 28 '20 18:09 richardlowenthal

Maybe create a minimal jsfiddle highlighting the question.

ibrierley avatar Sep 28 '20 21:09 ibrierley