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 1d780b049671131d8f5b0f2bbdcde4756438a09c..092ab1f20af2b5e6407f442c08871b471fc7b6a6 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 cb659f9d2f6f81967557b57fca08fd39017d3de2..d59d06020c758d13c321fc7496dbdf676672d714 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;