Skip to content

Commit

Permalink
fix: row Height compute for axis
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed Jan 23, 2024
1 parent a6c128a commit 65483dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vtable/src/layout/pivot-header-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ export class PivotHeaderLayoutMap implements LayoutMapAPI {
}
} else {
row = col;
if (this.frozenRowCount > 0 && row >= this.rowCount - this.bottomFrozenRowCount) {
if (this.bottomFrozenRowCount > 0 && row >= this.rowCount - this.bottomFrozenRowCount) {
return true;
}
}
Expand Down
7 changes: 7 additions & 0 deletions packages/vtable/src/scenegraph/layout/compute-row-height.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,13 @@ export function computeRowHeight(row: number, startCol: number, endCol: number,
}
}

if (
table.isPivotChart() &&
((table.isLeftFrozenColumn(col) && table.isBottomFrozenRow(row)) ||
(table.isRightFrozenColumn(col) && table.isBottomFrozenRow(row)))
) {
continue;
}
const cellType = table.isHeader(col, row)
? table._getHeaderLayoutMap(col, row)?.headerType
: table.getBodyColumnType(col, row);
Expand Down

0 comments on commit 65483dc

Please sign in to comment.