Optimize scrolling: resize only changed row index and higher
This commit is contained in:
parent
1f7c78eb0e
commit
979841f36c
4 changed files with 205 additions and 101 deletions
|
@ -228,9 +228,7 @@ export class SearchResults extends React.Component<PropsType> {
|
|||
|
||||
public resizeAll = () => {
|
||||
this.cellSizeCache.clearAll();
|
||||
|
||||
const rowCount = this.getRowCount();
|
||||
this.recomputeRowHeights(rowCount - 1);
|
||||
this.recomputeRowHeights(0);
|
||||
};
|
||||
|
||||
public getRowCount() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue