Remove explicit context menu width
authorTom Hughes <tom@compton.nu>
Sat, 25 Feb 2017 10:57:00 +0000 (10:57 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 25 Feb 2017 10:57:00 +0000 (10:57 +0000)
Firefox and Chromium at least seem to autosize correctly based
on the actual text in use for a given locale.

app/assets/javascripts/index.js

index 1ba2fbbdef5cc719b5799813aa03bce0cfd50870..b30564a1ae64b12ee3c7a98aff01b1c131da8c26 100644 (file)
@@ -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('');