Skip to content

Commit

Permalink
fix(android): list view init position incorrect when contain pull header
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and xuqingkuang committed Jun 30, 2020
1 parent 9061c23 commit c6eb90d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ else if (mOrientation == HORIZONTAL)
mRecyclerView.checkNotifyFooterAppearWithFewChild(endOffset);
// checkChildNotMuch(endOffset);
// changes may cause gaps on the UI, try to fix them.
if (getChildCount() > 0 && !mPreventFixGap)
if (getChildCount() > 0 && !mPreventFixGap && mRecyclerView.mState.mCustomHeaderHeight == 0)
{
// because layout from end may be changed by scroll to position
// we re-calculate it.
Expand Down

0 comments on commit c6eb90d

Please sign in to comment.