SpannedGridLayoutManager
SpannedGridLayoutManager copied to clipboard
Scroll state not restored properly in horizontal mode
The SpannedGridLayoutManager.onLayoutChildren method computes the scroll offset with:
val offset = view.top - getTopDecorationHeight(view)
irregardless of the orientation.
Sorry for the late response. Could you try again with the latest version? I spent a few hours trying to fix this issue - and a few others that were also related to scroll restoration - and it should be solved by now. Thanks.