Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue when resizing a hidden chart div that has padding #8377
I have a graph in a div that is sometimes hidden. When resizing the window containing the div while it is hidden, the graph does not come back when the div is shown again. It seems like this only happens if the graph has padding.
Here's an example without padding:
If you click
Here is an example with padding:
Doing the same steps as above, you should see that the graph does not come back when you try to show it again. You can resize the window once more to make it appear.
Highcharts JS v6.1.0 (2018-04-13)
Chrome and Firefox
When padding is 0, width and height are 0 and all works properly. In case when padding is declared as i.e 2px, width and height are negative and the code is run. As a result