Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
CSS grid causing dcc.Graph to resize incorrectly when zooming in #528
I am trying to use CSS grid to help in laying out Dash apps. This works for everything expect when used in conjunction with dcc.Graphs.
In this case when users zoom in dcc.Graphs fails to change its size causing it to be off the screen. Zooming out works fine bizarrely. If the page is reloaded already zoomed in it works fine.
Here is a demo of the problem encountered using the code above: when you zoom out, the graph resizes automatically (✓); but when you reset the zoom, the graph zooms in instead of resizing automatically (✗).
So this makes the graph "bleeding" outside of the window, what is not wanted.
This problem does not seem to occur when not using