ntt123 commited on
Commit
bf242e7
1 Parent(s): 1e34e92

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +2 -2
script.js CHANGED
@@ -237,7 +237,7 @@ window.onload = function(e) {
237
  canvas = document.getElementById("hw-canvas");
238
  ctx = canvas.getContext("2d");
239
  scale_factor = window.innerWidth / 1600;
240
- ctx.canvas.width = window.innerWidth;
241
- ctx.canvas.height = window.innerHeight;
242
 
243
  }
 
237
  canvas = document.getElementById("hw-canvas");
238
  ctx = canvas.getContext("2d");
239
  scale_factor = window.innerWidth / 1600;
240
+ ctx.canvas.width = window.innerWidth - 50;
241
+ ctx.canvas.height = window.innerHeight - 50;
242
 
243
  }