Skip to content

Commit

Permalink
fix(sheet): editor error (#1533)
Browse files Browse the repository at this point in the history
  • Loading branch information
DR-Univer committed Mar 9, 2024
1 parent 473cf6f commit 0da7b64
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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 {
Expand Down

0 comments on commit 0da7b64

Please sign in to comment.