Augustyniak / RATreeView

Library providing easy-to-use interface for displaying tree structures on iOS and tvOS.
MIT License
2.49k stars 465 forks source link

Scroll position changing after adding new children #96

Open brianhmayo opened 9 years ago

brianhmayo commented 9 years ago

I am implementing a tableview that has rows, which have children. Initially we have only the data for the parent rows. There is a download button to download the child data. Once the download is done, I used the method insertItemsAtIndex to add these then I reloadRowsForItems giving the parent. Sometimes this works perfectly fine, but sometimes the tableview scroll position will scroll to a new position. When this happens, some times the cell that performed the download is scrolled out of view. With that, sometimes after this when I tap the cell to expand, the scroll position again jumps to a new place. It is as if the table view size or relative position of the cells is getting messed up and when performing this operation it is changing the scroll position to match what it thinks it should be. I created a video of it, but I cannot attach the video to this issue.

Augustyniak commented 8 years ago

Hey,

Sorry for long response time. Can you share video using Dropbox or some similar service?