Skip to content

Commit

Permalink
Clear history row width when the view is measured.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3z committed Feb 27, 2018
1 parent a2326d8 commit ec0cc62
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
final int heightMode = MeasureSpec.getMode(heightMeasureSpec);

mHorizontalSpacingForRow.clear();
mChildNumForRow.clear();
mHeightForRow.clear();
mWidthForRow.clear();
mChildNumForRow.clear();

int measuredHeight = 0, measuredWidth = 0, childCount = getChildCount();
int rowWidth = 0, maxChildHeightInRow = 0, childNumInRow = 0;
Expand Down

0 comments on commit ec0cc62

Please sign in to comment.