From 0da7b647e05fc2c3bed3b202f2a1afbcd133a5c5 Mon Sep 17 00:00:00 2001 From: Univer <68851825+DR-Univer@users.noreply.github.com> Date: Sat, 9 Mar 2024 13:55:07 +0800 Subject: [PATCH] fix(sheet): editor error (#1533) --- .../sheets-ui/src/controllers/editor/start-edit.controller.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts b/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts index 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 {