We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e806d42 commit aae9f9fCopy full SHA for aae9f9f
js/libs/Board.js
@@ -36,9 +36,9 @@ var Board = (function() {
36
var margin = 10;
37
38
var heightCss = window.innerHeight - margin;
39
- var heightCanvas = height * this.resolution;
+ var heightCanvas = heightCss * this.resolution;
40
var widthCss = window.innerWidth - margin;
41
- var widthCanvas = width * this.resolution;
+ var widthCanvas = widthCss * this.resolution;
42
43
// If new size is larger than memory
44
if (widthCanvas > this.domMem.width || heightCanvas > this.domMem.height) {
0 commit comments