Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: issue #1791 (#2918)

Ran Luo4cba768e77f5
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 8b3e60cc2c..9948ff6aeb 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;