-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Left-shifted tooltips on SVG elements #14013
Comments
Hi @BertrandBordage! You appear to have posted a live example (http://jsfiddle.net/hqDF7/show/), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
The valid SVG would be: <svg width="100" height="100">
<g>
<circle cx="50" cy="50" r="10" />
<title>Test</title>
</g>
</svg> But of course, tooltips can't be applied on this. |
Closing per #14015. |
See http://jsfiddle.net/hqDF7/ for a minimal example.
The issue appeared with 8534e12.
Those lines use
.outerWidth
&.outerHeight
and override what.getBoundingClientRect
was returning. Unfortunately,.outer[Width|Height]
always return 0 for SVG elements, while.getBoundingClientRect
returns the expected output.Removing the incriminated lines "fixes" the issue. But of course I guess it creates other issues.
This issue is similar to #5956.
The text was updated successfully, but these errors were encountered: