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

Wrong position on SVG tspan in Chrome #567

Open
louisameline opened this issue Jun 17, 2016 · 2 comments
Open

Wrong position on SVG tspan in Chrome #567

louisameline opened this issue Jun 17, 2016 · 2 comments

Comments

@louisameline
Copy link
Collaborator

Reported by @ezzatron:

the positioning of the tooltip when used on a <tspan> element doesn't seem to work. It positions itself as if it were used on the parent <text> element. Not sure if that's my problem (maybe <tspan> doesn't allow positioning), or a bug?

@louisameline
Copy link
Collaborator Author

Thank you @ezzatron for the report.

It seems to be a Chrome bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=349835&q=tspan%20bbox&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified
Also discussed on http://stackoverflow.com/questions/5364980/how-to-get-the-width-of-an-svg-tspan-element

I don't think I'll implement a fix myself. I mentioned the issue to the maintainer of SVG.js here, who might decide to deal with it in his library (that our SVG plugin uses when it's included in the page). If he decides not to take care of it, pull requests are always welcome.

@ezzatron
Copy link

I came to the same conclusion, as it worked better (if still a bit imperfectly) under Firefox.

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

No branches or pull requests

2 participants