From cf06d56573010e83ddb31492d3cd08973115da10 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Sat, 5 Mar 2022 22:35:30 +0800 Subject: [PATCH] fix:table paging when using pagebreak --- src/editor/core/draw/Draw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index 2edacfe..aea00d5 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -474,7 +474,7 @@ export class Draw { let curPagePreHeight = marginHeight for (let r = 0; r < rowList.length; r++) { const row = rowList[r] - if (row.height + curPagePreHeight > height) { + if (row.height + curPagePreHeight > height || rowList[r - 1]?.isPageBreak) { curPagePreHeight = marginHeight + row.height } else { curPagePreHeight += row.height