question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maintain scroll position when adding rows to the top of the list

See original GitHub issue

When I call dataProvider.cloneWithRows() and add more rows to the top of the list. The scroll position is lost. I tried investigating by reading the source code. I’d appreciate it if you could help with this!

And thanks for the great library! Its performance is amazing.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
mayconmesquitacommented, May 25, 2019

2 years ago…

6reactions
soulflycommented, Aug 6, 2019

Is it already implemented?

I can give a real use case - a chat stream. A user can search for chat messages, then find something in the middle and jump into it, so the middle of chat stream will be rendered. Then a user can scroll back n forth, so a scroll position preserving must be implemented when insert messages in both directions when scroll

Could someone give an update here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keep scroll position when adding element to the top
When I add content to the end of the page, it works fine - the scrollbar adjusts to the new container.scrollWidth . But...
Read more >
Preserve ListView scroll position when inserting rows at the top.
It does insert and updating list items works fine. However, the list scroll position isn't preserved on the last message that user was...
Read more >
How to get and set SwiftUI List scroll position?
When the user first enters the list, everything is unread, so the list can start at the top. As new items scroll into...
Read more >
Refresh Page And Keep Scroll Position
Maintain our own scroll position with JavaScript. ... We also could add a notification bar at the top of the page allowing the...
Read more >
Table | Scroll Position | JET Developer Cookbook - Oracle
Col0 Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 Col9 Col10 Col11 Col12 Col13 Col14 0,0 0,1 0,2 0,3 0,4 0,5 0,6 0,7 0,8...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found