ctucx.git: oeffisearch

[nimlang] fast and simple tripplanner

commit 4dac33246ceba64cd88049c2eaec81c717c64a42
parent 0cc6f095866e93843332084a7fca7f74f83f62c2
Author: Milan Pässler <me@pbb.lc>
Date: Wed, 22 Jul 2020 17:23:54 +0200

fix scroll bar on canvas page
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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();