From: Tom Hughes Date: Sun, 3 Feb 2013 13:04:14 +0000 (+0000) Subject: Move the note popups up slightly X-Git-Tag: live~5091^2~36 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ae48206d2ce79f2bc8ba3507549ac2ddab0b291b?ds=sidebyside Move the note popups up slightly The default position makes it hard to grab the marker and move it when adding a note, so move themm up a few pixels. --- diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 4e9b50254..c02c633dc 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -110,6 +110,7 @@ $(document).ready(function () { minWidth: 320, maxWidth: mapSize.y * 1 / 3, maxHeight: mapSize.y * 2 / 3, + offset: new L.Point(0, -3), autoPanPadding: new L.Point(60, 40) }; }