prevent scrollbar on canvas page

This commit is contained in:
Milan Pässler 2020-07-23 15:21:52 +02:00
parent 41185859f1
commit 50076dab07

View file

@ -273,7 +273,7 @@ const resizeHandler = () => {
canvas.width = window.innerWidth * dpr;
canvas.height = (window.innerHeight - rect.height) * dpr;
canvas.style.width = `${window.innerWidth}px`;
canvas.style.height = `${window.innerHeight - rect.height - 1}px`;
canvas.style.height = `${window.innerHeight - rect.height - 4}px`;
ctx.restore();
ctx.save();