-
Notifications
You must be signed in to change notification settings - Fork 7
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
Changes to window height make the chart height to grow #2
Comments
Demo please? In this fiddle, it seems to behave well when resizing the frame. |
Here's an example. It happens when the chart doesn't have a height specified, either specified in options or inherited from container's height (so all I did with your jsfiddle was remove the height from the container). Specifying the height is obviously required but setting it on the container causes the chart to overlap any content after (notice the content after, which you can't see - only tested in Chrome) as the container's height isn't adjusted by the plugin (which we can't do either because subsequent renders use the new height!). So my current workaround is to just set the height via the chart.height setting. Not ideal but works. Thanks for the plugin. |
("added a condition which prevents adding height more than once")
("added a condition which prevents adding height more than once")
Each time the height of the browser window is changed the H.Legend.prototype.render function is called, which results in growth of the chart height.
The text was updated successfully, but these errors were encountered: