Skip to content

Commit

Permalink
bugfix: #614
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjun.barney committed Nov 4, 2022
1 parent 366b461 commit f2abf61
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ private int layoutFlexLineMainAxisVertical(FlexLine flexLine, LayoutState layout
}

childTop += (lp.topMargin + getTopDecorationHeight(view));
childBottom -= (lp.rightMargin + getBottomDecorationHeight(view));
childBottom -= (lp.bottomMargin + getBottomDecorationHeight(view));

if (layoutState.mLayoutDirection == LayoutState.LAYOUT_END) {
calculateItemDecorationsForChild(view, TEMP_RECT);
Expand Down Expand Up @@ -1699,9 +1699,9 @@ private int layoutFlexLineMainAxisVertical(FlexLine flexLine, LayoutState layout
Math.round(childTop) + view.getMeasuredHeight());
}
}
childTop += (view.getMeasuredHeight() + lp.topMargin + getBottomDecorationHeight(view)
childTop += (view.getMeasuredHeight() + lp.bottomMargin + getBottomDecorationHeight(view)
+ spaceBetweenItem);
childBottom -= (view.getMeasuredHeight() + lp.bottomMargin +
childBottom -= (view.getMeasuredHeight() + lp.topMargin +
getTopDecorationHeight(view) + spaceBetweenItem);
}
layoutState.mFlexLinePosition += mLayoutState.mLayoutDirection;
Expand Down

0 comments on commit f2abf61

Please sign in to comment.