fix: not render margin indicator in print mode #354

Co-authored-by: Hufe921 <huangyunfeihufe@hotmail.com>
pr675
jinfu 2 years ago committed by GitHub
parent 910f75662f
commit 3f1babec68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1788,7 +1788,9 @@ export class Draw {
// 绘制背景
this.background.render(ctx, pageNo)
// 绘制页边距
this.margin.render(ctx, pageNo)
if (this.mode !== EditorMode.PRINT) {
this.margin.render(ctx, pageNo)
}
// 渲染元素
const index = rowList[0].startIndex
this.drawRow(ctx, {

Loading…
Cancel
Save