From 3daacc6cb80506aefd25069f8960766b85e2d88a Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Sat, 22 Apr 2023 15:50:11 +0800 Subject: [PATCH] fix: image element row margin error --- 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 8e5a292..7015bff 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -1025,7 +1025,7 @@ export class Draw { } const ascent = (element.imgDisplay !== ImageDisplay.INLINE && element.type === ElementType.IMAGE) || element.type === ElementType.LATEX - ? metrics.height + ? metrics.height + rowMargin : metrics.boundingBoxAscent + rowMargin const height = rowMargin + metrics.boundingBoxAscent + metrics.boundingBoxDescent + rowMargin const rowElement: IRowElement = Object.assign(element, {