Fix WLV bug when data shrinks
Differential Revision: D3341453 fbshipit-source-id: 008cb65db6da74f2525ae8e667b702bc48f9f9ad
This commit is contained in:
parent
1926fdf156
commit
0a027167de
|
@ -339,7 +339,7 @@ class WindowedListView extends React.Component {
|
|||
const rowFrames = this._rowFrames;
|
||||
let firstVisible = -1;
|
||||
let lastVisible = 0;
|
||||
let lastRow = this.state.lastRow;
|
||||
let lastRow = clamp(0, this.state.lastRow, totalRows - 1);
|
||||
const top = this._scrollOffsetY;
|
||||
const bottom = top + this._frameHeight;
|
||||
for (let idx = 0; idx < lastRow; idx++) {
|
||||
|
|
Loading…
Reference in New Issue