redraphael icon indicating copy to clipboard operation
redraphael copied to clipboard

getBBox on a group returns all attributes as NaN

Open AmeenAhmed opened this issue 10 years ago • 1 comments

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.

AmeenAhmed avatar Apr 09 '14 20:04 AmeenAhmed

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();

AyanGhatak avatar May 26 '16 11:05 AyanGhatak