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
Adding items too fast to item list of a VirtualFlow causes scroll if the item list is empty. Waiting few milliseconds after adding first item fixes the problem. Also calling visibleCells() method after adding first item fixes the problem but I don't know if its about time it takes or something else.
I'm not sure, but it may be that this is by design ?
Consider that if you populate an empty list then it's "natural" to show the last item added (so scroll down),
but if there's already content then it makes "more sense" to stay where you are (so no scroll).
However there certainly are scenarios where it's equally valid to have the opposite type of behavior from this.
So maybe some API can be added to specify the desired behavior. Any ideas ?
Adding items too fast to item list of a VirtualFlow causes scroll if the item list is empty. Waiting few milliseconds after adding first item fixes the problem. Also calling visibleCells() method after adding first item fixes the problem but I don't know if its about time it takes or something else.
Demo:
The text was updated successfully, but these errors were encountered: