fix: drawing size error when browser scale page #594

pr675
Hufe921 2 years ago
parent b8323c0d8a
commit 7fa58f8290

@ -2131,7 +2131,12 @@ export class Draw {
private _clearPage(pageNo: number) { private _clearPage(pageNo: number) {
const ctx = this.ctxList[pageNo] const ctx = this.ctxList[pageNo]
const pageDom = this.pageList[pageNo] const pageDom = this.pageList[pageNo]
ctx.clearRect(0, 0, pageDom.width, pageDom.height) ctx.clearRect(
0,
0,
Math.max(pageDom.width, this.getWidth()),
Math.max(pageDom.height, this.getHeight())
)
this.blockParticle.clear() this.blockParticle.clear()
} }

Loading…
Cancel
Save