-
Notifications
You must be signed in to change notification settings - Fork 527
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
Label artifacts on long pages #236
Comments
I traced this to the following code in the flotr2.js file:
This inserts a div that is meant to be invisible so that the dimensions of text can be determined if it is rendered as html. The div is made invisible by placing it 10000px above the position of the graph. The div is then returned and the height and width are taken from its attributes by the Text.html() caller. I believe this can be fixed by storing the results of D.size(div) and then removing the dummy div before returning the results. I'll submit a pull request later today. |
Here is a jsfiddle that demonstrates the problem. |
Ran into this today. If you just need it for the dim, why not delete it afterwards? |
hide dummy div after measuring for issue HumbleSoftware#236
Some graphs with labels leave text artifacts when used on long pages over 10000px in height.
Steps to reproduce:
Results: in the area where the graph example is displayed note the floating "This is a subtitle" text artifact which occludes the "Basic Axis example" heading.
Expected Results: no text artifact.
This example is admittedly contrived. However, I have some long report pages where this is an issue.
The text was updated successfully, but these errors were encountered: