Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getBBox on a group returns all attributes as NaN #15

Open
AmeenAhmed opened this issue Apr 9, 2014 · 1 comment
Open

getBBox on a group returns all attributes as NaN #15

AmeenAhmed opened this issue Apr 9, 2014 · 1 comment
Labels

Comments

@AmeenAhmed
Copy link

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.

@shamasis shamasis added the bug label Sep 2, 2014
@AyanGhatak
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants