redraphael
redraphael copied to clipboard
getBBox on a group returns all attributes as NaN
The group has elements inside it and when getBBox is called it returns all NaNs while doing the same thing on the actual svg node returns correct result.
A test case to replicate the same would be:
Creating a "abc" group element and a text element appended to that group.
g = paper.group(''abc");
t = p.text(g).attr({"text": "xyz", "x":150,"y":50});
Fetching the boundary information of the group element.
g.getBBox();
This returns an object having the property values as NaN.
Although, when fetched on the text element, it works as expected:
t.getBBox();