fix: image element row margin error
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user