Skip to content

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.

fix: adjust height when select all (#4639)

lumixc274fc8723ba
diff --git a/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts b/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts
index f1332d8d22..e72d9438b9 100644
--- a/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts
+++ b/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts
@@ -80,8 +80,8 @@ export const DeltaRowHeightCommand: ICommand = {
let redoMutationParams: ISetWorksheetRowHeightMutationParams;
if (rangeType === RANGE_TYPE.ALL) {
- const colCount = worksheet.getRowCount();
- const allRowRanges = new Array(worksheet.getColumnCount())
+ const colCount = worksheet.getColumnCount();
+ const allRowRanges = new Array(worksheet.getRowCount())
.fill(undefined)
.map(
(_, index) =>