I'm trying to remember the verticalScrollPosition of a List when the view changes, and then reset the list back to the same position when the user navigates back to the list view.
I'm having some issues however - it doesn't seem to go back to the same position correctly in all cases.
I'm saving the value of list.verticalScrollPosition before the view is removed, and when the list is created the next time, I'm using list.scrollToPosition( 0, savedPosition, 0);
There always seems to be an offset so the list is not scrolled to the exact same position, and it appears that the higher the saved position (i.e. the further down the list you had scrolled to) the higher the offset discrepancy is.
I hope that makes sense - does anyone have an idea as to why that would be happening, or a suggestion on a better way to make a list go back to the same position the next time it's created?