try to deal with the default scaling of mobile devices, eliminate white borders aroun...
[lantea.git] / js / map.js
index 4185e0cba0a7abfedfd2ffbeb870a776b596de42..69993243a3a6568a673bb7412fef3b92b9313db0 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -134,8 +134,8 @@ function resizeAndDraw() {
   var viewportWidth = Math.min(window.innerWidth, window.outerWidth);
   var viewportHeight = Math.min(window.innerHeight, window.outerHeight);
 
-  var canvasWidth = viewportWidth * 0.98;
-  var canvasHeight = (viewportHeight - 100) * 0.98;
+  var canvasWidth = viewportWidth - 2;
+  var canvasHeight = viewportHeight - 2;
   gCanvas.style.position = "fixed";
   gCanvas.width = canvasWidth;
   gCanvas.height = canvasHeight;