]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.sidebar.js
Merge remote-tracking branch 'upstream/pull/5353'
[rails.git] / app / assets / javascripts / leaflet.sidebar.js
index 7e72278e322711e51cd3d538eed0334bbd5ed01f..9573c839d411c4a6eb5be8ebaed9d84a186cf8af 100644 (file)
@@ -31,9 +31,11 @@ L.OSM.sidebar = function (selector) {
         map.panBy([-paneWidth, 0], { animate: false });
       }
       $(sidebar).hide();
+      $("#content").addClass("overlay-right-sidebar");
       current = currentButton = $();
     } else {
       $(sidebar).show();
+      $("#content").removeClass("overlay-right-sidebar");
       current = pane;
       currentButton = button || $();
       if ($("html").attr("dir") === "rtl") {