You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a sidebar that expands / collapses on hover. When I click to go to the page the map draws only on the available canvas space, but then as I hover away from the sidebar the map does not redraw.
It seems the map only resizes on window.resize - how could I resize the map based on the page elements resizing?
I've been working with similar stuff, but with four charts so I found that you can use window.dispatchEvent(new Event('resize')); to trigger the event manually.
I have a sidebar that expands / collapses on hover. When I click to go to the page the map draws only on the available canvas space, but then as I hover away from the sidebar the map does not redraw.
It seems the map only resizes on
window.resize
- how could I resize the map based on the page elements resizing?App.vue
Map.vue
The text was updated successfully, but these errors were encountered: