Skip to content

Commit

Permalink
fix: issue #1791
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocs committed Aug 6, 2024
1 parent 36ac2bf commit 3e337ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ export function updateInlineDrawingPosition(
const { width = 0, height = 0 } = size;
const glyphHeight = glyph.bBox.bd + glyph.bBox.ba;

drawing.aLeft = divide.left + glyph.left + 0.5 * glyph.width - 0.5 * width || 0;
drawing.aLeft = divide.left + divide.paddingLeft + glyph.left + 0.5 * glyph.width - 0.5 * width || 0;
drawing.aTop = top + lineHeight - 0.5 * glyphHeight - 0.5 * height || 0;
drawing.width = width;
drawing.height = height;
Expand Down

0 comments on commit 3e337ea

Please sign in to comment.