Answer the question
In order to leave comments, you need to log in
How to make canvas full width and height of viewport?
How to make canvas area full width and height of viewport?
Demo - codepen.io/evg_/pen/xOpYvO
Tried to specify:
canvas.width = document.documentElement.clientWidth;
canvas.height = document.documentElement.clientHeight;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question