fix: multiple empty lists render error in first row

This commit is contained in:
xukuanzhuo
2023-12-05 21:15:32 +08:00
committed by Hufe
parent 1d7ca799c9
commit 1487033d75
+1 -1
View File
@@ -1414,7 +1414,7 @@ export class Draw {
if ( if (
curRow.startIndex === 0 && curRow.startIndex === 0 &&
curRow.elementList.length === 1 && curRow.elementList.length === 1 &&
(INLINE_ELEMENT_TYPE.includes(element.type!) || element.listId) INLINE_ELEMENT_TYPE.includes(element.type!)
) { ) {
curRow.height = defaultBasicRowMarginHeight curRow.height = defaultBasicRowMarginHeight
} }