Skip to content

Commit

Permalink
Merge pull request #214 from CsHeng/master
Browse files Browse the repository at this point in the history
fix ObservableListView & ObservableGridView get the wrong scrollY when restored
  • Loading branch information
ksoichiro committed Oct 28, 2015
2 parents 4d0df9d + a85c1b1 commit c235e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ private void onScrollChanged() {
mPrevFirstVisibleChildHeight = firstVisibleChild.getHeight();
} else if (firstVisiblePosition == 0) {
mPrevFirstVisibleChildHeight = firstVisibleChild.getHeight();
mPrevScrolledChildrenHeight = 0;
}
if (mPrevFirstVisibleChildHeight < 0) {
mPrevFirstVisibleChildHeight = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ private void onScrollChanged() {
mPrevFirstVisibleChildHeight = firstVisibleChild.getHeight();
} else if (firstVisiblePosition == 0) {
mPrevFirstVisibleChildHeight = firstVisibleChild.getHeight();
mPrevScrolledChildrenHeight = 0;
}
if (mPrevFirstVisibleChildHeight < 0) {
mPrevFirstVisibleChildHeight = 0;
Expand Down

0 comments on commit c235e2d

Please sign in to comment.