fix:table paging when using pagebreak

This commit is contained in:
Hufe921
2022-03-05 22:35:30 +08:00
parent 6db7a99eb2
commit cf06d56573
+1 -1
View File
@@ -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