Imperial-visualizations/Vue-Components

Window resize causes sidebar to shrink below minimum size

Opened this issue · 0 comments

When the browser window is resized with a sidebar open, if the window is shrunk to a horizontal width that is below the minimum-width the pane gets stuck. This is because the pane is permanently below the minimum width that it is supposed to be and thus any onClick events on the drag spot of the pane get cancelled.

Potential fixes for this bug could be:

  • Automatically hide/disable the sidebar if the browser window is too small to display it
  • Change the way the sidebar is displayed using media queries, so that when the browser window is too small the pane becomes full screen