You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Snap.svg's getBBox() refuses to work on use elements. However, if you call getBBox() on the element's node, it does work, at least in Chrome. Firefox does get the correct values if you try background.node.getBBox() in the Console after loading.
varmySvg=newSnap('.mySvg');varbackground=mySvg.select('.background');// The use referencevarfirstResults=background.getBBox();// Empty valuesvarsecondResults=background.node.getBBox();// The expected values
The text was updated successfully, but these errors were encountered:
Snap.svg's
getBBox()
refuses to work onuse
elements. However, if you callgetBBox()
on the element'snode
, it does work, at least in Chrome. Firefox does get the correct values if you trybackground.node.getBBox()
in the Console after loading.See the example here: http://codepen.io/shshaw/pen/JoWGBB
The text was updated successfully, but these errors were encountered: