Skip to content

Commit

Permalink
Merge pull request #426 from VisActor/fix/fix-frozen-column-progress
Browse files Browse the repository at this point in the history
fix: frozen column progress index error
  • Loading branch information
Rui-Sun authored Oct 19, 2023
2 parents d03d775 + d121856 commit 9a762a4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/vtable/src/scenegraph/group-creater/progress/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export class SceneProxy {
}

setParamsForColumn() {
this.bodyLeftCol = this.table.rowHeaderLevelCount;
// this.bodyLeftCol = this.table.rowHeaderLevelCount;
this.bodyLeftCol = this.table.frozenColCount;
// this.bodyRightCol = this.table.colCount - 1;
this.bodyRightCol = this.table.colCount - 1 - this.table.rightFrozenColCount;

Expand Down Expand Up @@ -224,12 +225,12 @@ export class SceneProxy {
// compute rows height
computeRowsHeight(this.table, this.currentRow + 1, endRow, false);

if (this.table.rowHeaderLevelCount) {
if (this.table.frozenColCount) {
// create row header row cellGroup
let maxHeight = 0;
for (let col = 0; col < this.table.rowHeaderLevelCount; col++) {
for (let col = 0; col < this.table.frozenColCount; col++) {
const colGroup = this.table.scenegraph.getColGroup(col);
const cellLocation = 'rowHeader';
const cellLocation = this.table.isListTable() ? 'body' : 'rowHeader';
const { height } = createComplexColumn(
colGroup,
col,
Expand All @@ -251,7 +252,7 @@ export class SceneProxy {
let maxHeight = 0;
for (let col = this.table.colCount - this.table.rightFrozenColCount; col < this.table.colCount; col++) {
const colGroup = this.table.scenegraph.getColGroup(col);
const cellLocation = 'rowHeader';
const cellLocation = this.table.isListTable() ? 'body' : 'rowHeader';
const { height } = createComplexColumn(
colGroup,
col,
Expand All @@ -272,6 +273,9 @@ export class SceneProxy {
let maxHeight = 0;
for (let col = this.bodyLeftCol; col <= this.bodyRightCol; col++) {
const colGroup = this.table.scenegraph.getColGroup(col);
if (!colGroup) {
continue;
}
const cellLocation = 'body';
const { height } = createComplexColumn(
colGroup,
Expand Down

0 comments on commit 9a762a4

Please sign in to comment.