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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: text align error when test wrap (#1143)
Ran Luoe3dfb27bee20
diff --git a/packages/engine-render/src/components/docs/document.ts b/packages/engine-render/src/components/docs/document.tsindex d1dfd72dea..3f0d6372bd 100644--- a/packages/engine-render/src/components/docs/document.ts+++ b/packages/engine-render/src/components/docs/document.ts@@ -322,7 +322,7 @@ export class Documents extends DocComponent {rotateTranslateXListApply = rotateTranslateXList;} else if (wrapStrategy === WrapStrategy.WRAP) {- // alignOffset.x = pagePaddingLeft * scale;+ alignOffset.x = pagePaddingLeft;}for (let i = 0; i < linesCount; i++) {