X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aff23d4b4bc9e9fecd5c1caa7e4d38087e002396..c30f20122d1f2f0f49240aae17d1233dd745e1e5:/app/assets/javascripts/leaflet.sidebar.js 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;