Skip to content

Commit

Permalink
fix: fix computeRowsHeight() missing rowEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Jul 7, 2023
1 parent 35441b6 commit a465fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vtable/src/scenegraph/layout/compute-row-height.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ export function computeRowsHeight(table: BaseTableAPI, rowStart?: number, rowEnd
) {
// check fixed style and no wrap situation, just compute 0-table.rowHeaderLevelCount column(the column after row header) in ervey row
// in traspose table and row indicator pivot table
for (let row = Math.max(rowStart, table.columnHeaderLevelCount); row < rowEnd; row++) {
for (let row = Math.max(rowStart, table.columnHeaderLevelCount); row <= rowEnd; row++) {
table._clearRowRangeHeightsMap(row);
const height = computeRowHeight(row, 0, table.rowHeaderLevelCount, table);
table.setRowHeight(row, height);
}
} else {
for (let row = Math.max(rowStart, table.columnHeaderLevelCount); row < rowEnd; row++) {
for (let row = Math.max(rowStart, table.columnHeaderLevelCount); row <= rowEnd; row++) {
table._clearRowRangeHeightsMap(row);
const height = computeRowHeight(row, 0, table.colCount - 1, table);
table.setRowHeight(row, height);
Expand Down

0 comments on commit a465fcf

Please sign in to comment.