diff --git a/gridfader.js b/gridfader.js index 9d8dda6..49871e3 100755 --- a/gridfader.js +++ b/gridfader.js @@ -72,8 +72,8 @@ var GridFader = function(canvasId) { var Environment = { SetCanvasSize: function() { - self.canvas.height = window.innerHeight; - self.canvas.width = window.innerWidth; + self.canvas.height = self.canvas.clientHeight; + self.canvas.width = self.canvas.clientWidth; } }; diff --git a/index.html b/index.html index 020818d..3bba1b5 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,7 @@