Skip to content

Commit

Permalink
修改onLayout的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
teach committed Apr 3, 2020
1 parent e45a036 commit 2da79a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
mScrollRange = 0;
int childTop = t + getPaddingTop();
int left = l + getPaddingLeft();
int childTop = getPaddingTop();
int left = getPaddingLeft();

List<View> children = getNonGoneChildren();
int count = children.size();
Expand Down

0 comments on commit 2da79a5

Please sign in to comment.