]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Increase sidebar width, back to 350px
[rails.git] / app / assets / javascripts / index.js
index f1644c06f0a12a131d0e7d0b7d30a63d29c8d033..59e231381778bb5d1591982f0256f57e2fc0e55e 100644 (file)
@@ -201,7 +201,7 @@ $(document).ready(function () {
     page.pushstate = function(path) {
       $("#content").addClass("overlay-sidebar");
       map.invalidateSize({pan: false})
-        .panBy([-300, 0], {animate: false});
+        .panBy([-350, 0], {animate: false});
       OSM.loadSidebarContent(path);
       page.load();
     };
@@ -217,7 +217,7 @@ $(document).ready(function () {
     };
 
     page.unload = function() {
-      map.panBy([300, 0], {animate: false});
+      map.panBy([350, 0], {animate: false});
       $("#content").removeClass("overlay-sidebar");
       map.invalidateSize({pan: false});
     };