From 4dac33246ceba64cd88049c2eaec81c717c64a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Wed, 22 Jul 2020 17:23:54 +0200 Subject: [PATCH] fix scroll bar on canvas page --- client/js/canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/canvas.js b/client/js/canvas.js index 5747397..6772241 100644 --- a/client/js/canvas.js +++ b/client/js/canvas.js @@ -271,7 +271,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}px`; + canvas.style.height = `${window.innerHeight - rect.height - 1}px`; ctx.restore(); ctx.save();