From 146e9877e5d9f6a07042105244eaa48e0432132e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 2 Dec 2012 13:32:16 +0000 Subject: [PATCH] Make sure popups don't overlay controls or the top bar --- app/assets/javascripts/index/notes.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 154c6026d..365d4f11c 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -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) { -- 2.43.2