Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ObservableListView & ObservableGridView get the wrong scrollY when restored #214

Merged
merged 1 commit into from Oct 28, 2015

Conversation

CsHeng
Copy link

@CsHeng CsHeng commented Oct 28, 2015

Hi I'm using this library to implement my own ViewPagerTabActivity, but when I swipe and first Fragment item in FragmentAdapter got destroyed, it can't restore the right scrollY of ObservableListView because of a negative value on mPrevScrolledChildrenHeight. So I commit this change and at the same time I find that ObservableRecyclerView also has the same fix.

fix ObservableListView & ObservableGridView not restore the right scrollY state, reference: ObservableRecyclerView

Please review and accept it. Appreciated for that.

…ollY state, reference: ObservableRecyclerView
@ksoichiro
Copy link
Owner

@CsHeng Thank you for your pull request!
You are right, this fix is already applied to ObservableRecyclerView in #120 and it should have been applied to ObservableListView and ObservableGridView also.

ksoichiro added a commit that referenced this pull request Oct 28, 2015
fix ObservableListView & ObservableGridView get the wrong scrollY when restored
@ksoichiro ksoichiro merged commit c235e2d into ksoichiro:master Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants