]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Make sure popups don't overlay controls or the top bar
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 154c6026df47f279cf3d92eab7bba7f8f1daaa7d..365d4f11c5384004fc88c24156c165dae1f45cf5 100644 (file)
@@ -96,7 +96,7 @@ $(document).ready(function () {
   function popupOptions() {
     var mapSize = map.getSize();
 
-    return { maxHeight: mapSize.y * 2 / 3 };
+    return { maxHeight: mapSize.y * 2 / 3, autoPanPadding: new L.Point(60, 40) };
   }
 
   function createPopupContent(marker, properties) {