You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a large, multi-column vertical list (1k+ items, 7 columns). The size of the cells is constant, as is the number of cells the list renders. I have some behavior that depends on the list's current scrollOffset. e.g.:
On first render, everything works as expected. I scroll around the list and the reported contentSize doesn't change.
But when I cause a re-render by changing a value in one of the existing cells — which doesn't change the size of any cells or change the number of cells rendered — contentSize.height becomes slightly smaller.
The discrepancy isn't constant, but varies somehow with the size of the list. Additionally, when I scroll around the list in this state, contentSize.height will change by very small amounts.
If I reload the app in this state, contentSize.height goes back to its original value and everything works as expected until I update the data again.
Expected behavior
I expect contentSize.contentOffset.y to stay the same between the renders, and as I scroll up and down the list.
To Reproduce
This only seems to occur with a list large enough that I can't scroll through it without hitting blank cells. At smaller list sizes the problem doesn't occur. I'm seeing it with contentSize.y around 23000.
Platform:
iOS
Android
Environment
1.6.2
The text was updated successfully, but these errors were encountered:
That caused the behavior above, where the list size was calculated correctly on the first render, but incorrectly on subsequent renders. When I change it to this, the issue no longer occurs, and the list size stays the same:
Current behavior
I have a large, multi-column vertical list (1k+ items, 7 columns). The size of the cells is constant, as is the number of cells the list renders. I have some behavior that depends on the list's current scrollOffset. e.g.:
On first render, everything works as expected. I scroll around the list and the reported contentSize doesn't change.
But when I cause a re-render by changing a value in one of the existing cells — which doesn't change the size of any cells or change the number of cells rendered —
contentSize.height
becomes slightly smaller.The discrepancy isn't constant, but varies somehow with the size of the list. Additionally, when I scroll around the list in this state,
contentSize.height
will change by very small amounts.If I reload the app in this state,
contentSize.height
goes back to its original value and everything works as expected until I update the data again.Expected behavior
I expect
contentSize.contentOffset.y
to stay the same between the renders, and as I scroll up and down the list.To Reproduce
This only seems to occur with a list large enough that I can't scroll through it without hitting blank cells. At smaller list sizes the problem doesn't occur. I'm seeing it with contentSize.y around 23000.
Platform:
Environment
1.6.2
The text was updated successfully, but these errors were encountered: