-
Notifications
You must be signed in to change notification settings - Fork 716
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
getStringWidth leaves an empty svg in the document body. #356
Comments
I believe the SVG is required, had the same issue myself. Setting the following CSS to target svg's that are direct children of body solved my issues:
Your actual charts and svg's are almost certainly wrapped in some sort of div, so they won't be affected by this rule. |
Hi @justnick21, as @mmartinsky said the svg is required, here's the reasoning for this: #218 (comment) @techniq think we should |
@hshoff |
fixed in #357 will be released in |
@justnick21 yup will verify before releasing |
For measuring, I usually place elements in negative offscreen using |
When using
Text
from@vx/text
. The getStringWith function seems to be leaving an empty svg on the body of my document which messes up the document height:The text was updated successfully, but these errors were encountered: