From: Tom Hughes Date: Sun, 2 Dec 2012 13:32:16 +0000 (+0000) Subject: Make sure popups don't overlay controls or the top bar X-Git-Tag: live~5179^2~63 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/146e9877e5d9f6a07042105244eaa48e0432132e?ds=sidebyside Make sure popups don't overlay controls or the top bar --- 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) {