Browse Source

Merge pull request #1101 from Banana-energy/master

fix: 修复截图位置偏移
master
mengshukeji 3 years ago
committed by GitHub
parent
commit
1019a77676
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/controllers/handler.js

4
src/controllers/handler.js

@ -4746,8 +4746,8 @@ export default function luckysheetHandler() {
} }
let newCanvas = $("<canvas>").attr({ let newCanvas = $("<canvas>").attr({
width: Math.ceil(ch_width * devicePixelRatio), width: Math.ceil(ch_width * Store.devicePixelRatio),
height: Math.ceil(rh_height * devicePixelRatio) height: Math.ceil(rh_height * Store.devicePixelRatio)
}).css({ width: ch_width, height: rh_height }); }).css({ width: ch_width, height: rh_height });
luckysheetDrawMain(scrollWidth, scrollHeight, ch_width, rh_height, 1, 1, null, null, newCanvas); luckysheetDrawMain(scrollWidth, scrollHeight, ch_width, rh_height, 1, 1, null, null, newCanvas);

Loading…
Cancel
Save