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(sheet): editor error (#1533)
Univer0da7b647e05f
diff --git a/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts b/packages/sheets-ui/src/controllers/editor/start-edit.controller.tsindex 245003991c..474c34ea2c 100644--- a/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts+++ b/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts@@ -303,8 +303,12 @@ export class StartEditController extends Disposable {// Scaling is handled by the renderer, so the skeleton only accepts the original width and height, which need to be divided by the magnification factor.documentDataModel?.updateDocumentDataPageSize(editorWidth / scaleX);+ /**+ * Do not rely on cell layout logic, depend on the document's internal alignment logic.+ */documentDataModel?.updateDocumentRenderConfig({horizontalAlign: HorizontalAlign.UNSPECIFIED,+ cellValueType: undefined,});return {