apply a small hack to display dump button for now, use outerWidth/Height is small...
authorRobert Kaiser <robert@notebook.box.kairo.at>
Sun, 12 Feb 2012 16:11:44 +0000 (17:11 +0100)
committerRobert Kaiser <robert@notebook.box.kairo.at>
Sun, 12 Feb 2012 16:11:44 +0000 (17:11 +0100)
index.html
js/map.js

index 1d780b0..092ab1f 100644 (file)
@@ -27,7 +27,7 @@
 <input type="button" id="saveTrackButton" value="Save"
        onclick="saveTrack();">
 <input type="button" id="dumpTrackButton" value="Dump"
-       onclick="saveTrackDump();" class="debugHide">
+       onclick="saveTrackDump();" class="debugHideX">
 <input type="button" id="clearTrackButton" value="Clear"
        onclick="clearTrack();"><br/>
 <input type="checkbox" id="trackCheckbox"
index cb659f9..d59d060 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -131,8 +131,8 @@ function initMap() {
 }
 
 function resizeAndDraw() {
-  var viewportWidth = window.innerWidth;
-  var viewportHeight = window.innerHeight;
+  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;