diff --git a/packages/engine-render/src/components/docs/layout/block/paragraph/layout-ruler.ts b/packages/engine-render/src/components/docs/layout/block/paragraph/layout-ruler.ts index 8b3e60cc2cfd..9948ff6aeb6a 100644 --- a/packages/engine-render/src/components/docs/layout/block/paragraph/layout-ruler.ts +++ b/packages/engine-render/src/components/docs/layout/block/paragraph/layout-ruler.ts @@ -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;