Skip to content

Commit

Permalink
Merge pull request #8730 from garymathews/TIMOB-24277
Browse files Browse the repository at this point in the history
[TIMOB-24277] Android: Fix horizontal layout when using 'right'
  • Loading branch information
ssjsamir committed Feb 22, 2017
2 parents 46e7ebd + c04b8b2 commit 3501943
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,14 @@ private void computeHorizontalLayoutPosition(TiCompositeLayout.LayoutParams para
// the width of the screen
right = Math.min(right, layoutRight);
}

hpos[0] = left;
hpos[1] = right;

if (optionRight != null) {
hpos[0] = layoutRight - left;
hpos[1] = layoutRight - horiztonalLayoutPreviousRight;
} else {
hpos[0] = left;
hpos[1] = right;
}
horizontalLayoutCurrentLeft = right;

if (enableHorizontalWrap) {
Expand Down

0 comments on commit 3501943

Please sign in to comment.