Browse Source

fix the image size over the canvas

tags/v1.21.9.2
zhoupzh 3 years ago
parent
commit
2fde36b52d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      public/self/js/Director/detection.js

+ 1
- 1
public/self/js/Director/detection.js View File

@@ -2676,7 +2676,7 @@ function setPage(pageData,pageSize){

canvas = document.getElementById("myCanvas");
context = canvas.getContext("2d");
maxWidth = document.getElementById("showPic").offsetWidth;
maxWidth = document.getElementById("showPic").offsetWidth-56;
maxHeight = document.getElementById("showPic").offsetHeight-100;
canvas.width = maxWidth;
canvas.height = maxHeight;


Loading…
Cancel
Save