Fix WLV bug when data shrinks
Differential Revision: D3341453 fbshipit-source-id: 008cb65db6da74f2525ae8e667b702bc48f9f9ad
This commit is contained in:
Родитель
1926fdf156
Коммит
0a027167de
|
@ -339,7 +339,7 @@ class WindowedListView extends React.Component {
|
||||||
const rowFrames = this._rowFrames;
|
const rowFrames = this._rowFrames;
|
||||||
let firstVisible = -1;
|
let firstVisible = -1;
|
||||||
let lastVisible = 0;
|
let lastVisible = 0;
|
||||||
let lastRow = this.state.lastRow;
|
let lastRow = clamp(0, this.state.lastRow, totalRows - 1);
|
||||||
const top = this._scrollOffsetY;
|
const top = this._scrollOffsetY;
|
||||||
const bottom = top + this._frameHeight;
|
const bottom = top + this._frameHeight;
|
||||||
for (let idx = 0; idx < lastRow; idx++) {
|
for (let idx = 0; idx < lastRow; idx++) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче