Closed songrit closed 10 years ago
For mobile app, is it possible to set the canvas to full width, I try $('canvas').width=window.innerWidth but nothing shows up.
$('canvas').width=window.innerWidth
I got it, I change line 28 to ctx.canvas.width = $scope.width || $elem.width || window.innerWidth || ctx.canvas.width; now if I don't specify width it'll just use window.innerWidth
ctx.canvas.width = $scope.width || $elem.width || window.innerWidth || ctx.canvas.width;
For mobile app, is it possible to set the canvas to full width, I try
$('canvas').width=window.innerWidth
but nothing shows up.