Skip to content

Commit

Permalink
Merge pull request #220 from gurgendav/gurgendav-divider
Browse files Browse the repository at this point in the history
Fixed bug with dividers in ListView
  • Loading branch information
ksoichiro committed Nov 28, 2015
2 parents c235e2d + d19cb44 commit 4c2117a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ private void onScrollChanged() {
if (mPrevFirstVisibleChildHeight < 0) {
mPrevFirstVisibleChildHeight = 0;
}
mScrollY = mPrevScrolledChildrenHeight - firstVisibleChild.getTop();
mScrollY = mPrevScrolledChildrenHeight - firstVisibleChild.getTop() +
firstVisiblePosition * getDividerHeight();
mPrevFirstVisiblePosition = firstVisiblePosition;

dispatchOnScrollChanged(mScrollY, mFirstScroll, mDragging);
Expand Down

0 comments on commit 4c2117a

Please sign in to comment.