X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c8fb5ad24c5751bd2d43b86e4359381d200af066..b5800b4c2f51e265b51f6b0cd45728b8d7db86aa:/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;