diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index c0ffc2e..8e5a292 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -1023,7 +1023,8 @@ export class Draw { metrics.boundingBoxDescent += metrics.height / 2 } } - const ascent = element.type === ElementType.IMAGE || element.type === ElementType.LATEX + const ascent = (element.imgDisplay !== ImageDisplay.INLINE && element.type === ElementType.IMAGE) || + element.type === ElementType.LATEX ? metrics.height : metrics.boundingBoxAscent + rowMargin const height = rowMargin + metrics.boundingBoxAscent + metrics.boundingBoxDescent + rowMargin