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