Chart grows on window resize in styled mode #7494
Closed
Comments
Hi @DiegoCardoso It looks like the problem is with the functions |
I just noticed that if I call |
CauseHere you see what failed - the SVG is rendered as an inline image so the space below the baseline is added to the container. Subsequently, the container Preliminary workaroundAdd this snippet to your CSS .highcharts-root {
display: block;
} |
Thanks! That also explains why the HC height was This seems to fix it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This behavior is only affecting Highcharts in styled mode.
If container has no explicit height defined, Highcharts is created with a height of 400px.
Expected behaviour
Chart should keep its initial height whenever a new
resize
event occurs.Actual behaviour
Chart keeps growing after any
resize
event (whether by resizing the window or by dispatching anew Event('resize')
)Live demo with steps to reproduce
http://jsfiddle.net/diegocardoso/c88n2o2w/1/
Affected browser(s)
Tested on latest versions of Chrome, Firefox and Safari.
Tested on latest Highcharts 5 and 6.
The text was updated successfully, but these errors were encountered: