ctucx.git: oeffisearch

[nimlang] fast and simple tripplanner

commit 50076dab07424c2de12e0d093106cce1c7a55799
parent 41185859f1c5df3acc29fb5663c2168ef75069c4
Author: Milan Pässler <me@pbb.lc>
Date: Thu, 23 Jul 2020 15:21:52 +0200

prevent scrollbar on canvas page
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/js/canvas.js b/client/js/canvas.js
@@ -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();