Issue when resizing a hidden chart div that has padding #8377
Labels
Comments
Hi @Munksgaard, Workaround Demo: Internal note 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
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
https://jsfiddle.net/k435w62o/3/
If you click
hide
, resize the window a bit and then clickshow
, the graph comes back.Here is an example with padding:
https://jsfiddle.net/k435w62o/2/
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.
Product version
Highcharts JS v6.1.0 (2018-04-13)
Affected browser(s)
Chrome and Firefox
The text was updated successfully, but these errors were encountered: