diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index ae2f6b3..38acbef 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -2131,7 +2131,12 @@ export class Draw { private _clearPage(pageNo: number) { const ctx = this.ctxList[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() }