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: change col width no need to auto height row (#887)
Ran Luo54cdd7d5cbad
diff --git a/packages/sheets-ui/src/controllers/auto-height.controller.ts b/packages/sheets-ui/src/controllers/auto-height.controller.tsindex 4e441e12f0..b29c888f9f 100644--- a/packages/sheets-ui/src/controllers/auto-height.controller.ts+++ b/packages/sheets-ui/src/controllers/auto-height.controller.ts@@ -19,14 +19,11 @@ import { IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/import type {ISetRangeValuesRangeMutationParams,ISetStyleCommandParams,- ISetWorksheetColWidthMutationParams,ISetWorksheetRowAutoHeightMutationParams,ISetWorksheetRowIsAutoHeightMutationParams,} from '@univerjs/sheets';import {- DeltaColumnWidthCommand,SelectionManagerService,- SetColWidthCommand,SetRangeValuesCommand,SetStyleCommand,SetWorksheetRowAutoHeightMutation,@@ -121,20 +118,6 @@ export class AutoHeightController {},});- // for intercept set-worksheet-col-width command.- sheetInterceptorService.interceptCommand({- getMutations: (command: { id: string; params: ISetWorksheetColWidthMutationParams }) => {- if (command.id !== DeltaColumnWidthCommand.id && command.id !== SetColWidthCommand.id) {- return {- redos: [],- undos: [],- };- }-- return this._getUndoRedoParamsOfAutoHeight(command.params.ranges);- },- });-// for intercept set style command.sheetInterceptorService.interceptCommand({getMutations: (command: { id: string; params: ISetStyleCommandParams<number> }) => {