From 1d14a6b92922394bc06501c0eb6be89be4649b87 Mon Sep 17 00:00:00 2001 From: Anurag Aggarwal Date: Sun, 29 Mar 2020 22:19:00 +0530 Subject: [PATCH] One screen view adjust screen --- js/xaos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/xaos.js b/js/xaos.js index 0e55418..e04e76d 100644 --- a/js/xaos.js +++ b/js/xaos.js @@ -84,8 +84,8 @@ xaos.zoom = (function() { function CanvasImage(canvas) { if (canvas.width !== innerWidth || canvas.height !== innerHeight) { - canvas.width = innerWidth; - canvas.height = innerHeight; + canvas.width = innerWidth - innerWidth*0.2; + canvas.height = innerHeight - innerHeight*0.2; } else { ctx.clearRect(0, 0, canvas.width, canvas.height); }