Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
longerian committed May 2, 2017
1 parent 77c6320 commit 5f9c08a
Show file tree
Hide file tree
Showing 2 changed files with 468 additions and 437 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ public int computeAlignOffset(int offset, boolean isLayoutEnd, boolean useAnchor
private int handleOne(LayoutStateWrapper layoutState, LayoutChunkResult result, LayoutManagerHelper helper,
boolean layoutInVertical, int parentWidth, int parentHeight, int parentHPadding, int parentVPadding) {
int mainConsumed = 0;
OrientationHelper orientationHelper = helper.getMainOrientationHelper();

View view = mChildrenViews[0];
final ViewGroup.MarginLayoutParams lp = new ViewGroup.MarginLayoutParams(
view.getLayoutParams());
Expand All @@ -288,7 +290,6 @@ private int handleOne(LayoutStateWrapper layoutState, LayoutChunkResult result,

helper.measureChild(view, widthSpec, heightSpec);

OrientationHelper orientationHelper = helper.getMainOrientationHelper();
mainConsumed = orientationHelper.getDecoratedMeasurement(view) + (layoutInVertical ?
getVerticalMargin() + getVerticalPadding()
: getHorizontalMargin() + getHorizontalPadding());
Expand Down
Loading

0 comments on commit 5f9c08a

Please sign in to comment.