X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aff23d4b4bc9e9fecd5c1caa7e4d38087e002396..f898058e76459562e8d54c61458eba0fb1476f35:/app/assets/javascripts/leaflet.sidebar.js?ds=inline diff --git a/app/assets/javascripts/leaflet.sidebar.js b/app/assets/javascripts/leaflet.sidebar.js index 961842668..8c4dee308 100644 --- a/app/assets/javascripts/leaflet.sidebar.js +++ b/app/assets/javascripts/leaflet.sidebar.js @@ -28,11 +28,11 @@ L.OSM.sidebar = function(selector) { current = pane; } + map.invalidateSize({pan: false, animate: false}); + current .show() .trigger('show'); - - map.invalidateSize({pan: false, animate: false}); }; return control;