From 34799d7cb90a5ed2161c219121ca7b4fcd692558 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Sun, 5 Feb 2023 15:38:23 +0800 Subject: [PATCH] fix:get rowFlex when line breaks --- 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 fab0d11..8f3ce48 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -792,7 +792,7 @@ export class Draw { height, elementList: [rowElement], ascent, - rowFlex: rowElement.rowFlex, + rowFlex: elementList[i + 1]?.rowFlex, isPageBreak: element.type === ElementType.PAGE_BREAK }) } else {