Skip to content

Commit

Permalink
fix: add update all in updateChartSizeForResizeColWidth&updateChartSi…
Browse files Browse the repository at this point in the history
…zeForResizeRowHeight
  • Loading branch information
Rui-Sun committed Aug 7, 2024
1 parent a2fdfc7 commit dd9f1fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vtable/src/ListTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ export class ListTable extends BaseTable implements ListTableAPI {
notFillHeight = this.getAllRowsHeight() <= this.tableNoFrameHeight;
}
if (this.widthMode === 'adaptive' || notFillWidth || this.heightMode === 'adaptive' || notFillHeight) {
this.scenegraph.updateChartSizeForResizeColWidth(0); // 如果收起展开有性能问题 可以排查下这个防范
this.scenegraph.updateChartSizeForResizeColWidth(-1); // 如果收起展开有性能问题 可以排查下这个防范
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable/src/PivotTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ export class PivotTable extends BaseTable implements PivotTableAPI {
notFillHeight = this.getAllRowsHeight() <= this.tableNoFrameHeight;
}
if (this.widthMode === 'adaptive' || notFillWidth || this.heightMode === 'adaptive' || notFillHeight) {
this.scenegraph.updateChartSizeForResizeColWidth(0); // 如果收起展开有性能问题 可以排查下这个防范
this.scenegraph.updateChartSizeForResizeColWidth(-1); // 如果收起展开有性能问题 可以排查下这个防范
}
}
}
Expand Down

0 comments on commit dd9f1fd

Please sign in to comment.