From: Tom Hughes Date: Sat, 25 Feb 2017 10:57:00 +0000 (+0000) Subject: Remove explicit context menu width X-Git-Tag: live~3539 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/8db05481193bfb105c76cda40ea0617b5f10545e?hp=4b43396ede248f97560b059ef202c7fa26d63947 Remove explicit context menu width Firefox and Chromium at least seem to autosize correctly based on the actual text in use for a given locale. --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 1ba2fbbde..b30564a1a 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -80,8 +80,7 @@ $(document).ready(function () { var map = new L.OSM.Map("map", { zoomControl: false, layerControl: false, - contextmenu: true, - contextmenuWidth: 140 + contextmenu: true }); map.attributionControl.setPrefix('');