<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"
}
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;