Skip to content

Commit

Permalink
[TIMOB-24792] Fix horizontal layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Jun 8, 2017
1 parent 2ddb13b commit ff31cfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public TiListItem(TiViewProxy proxy, LayoutParams p, View v, View item_layout) {
}

public void processProperties(KrollDict d) {

if (d.containsKey(TiC.PROPERTY_LAYOUT)) {
d.remove(TiC.PROPERTY_LAYOUT);
}
if (d.containsKey(TiC.PROPERTY_ACCESSORY_TYPE)) {
int accessory = TiConvert.toInt(d.get(TiC.PROPERTY_ACCESSORY_TYPE), -1);
handleAccessory(accessory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,14 +731,9 @@ private void computeHorizontalLayoutPosition(TiCompositeLayout.LayoutParams para
right = Math.min(right, layoutRight);
}

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

if (enableHorizontalWrap) {
// Don't update row on the first iteration since we already do it
Expand Down

0 comments on commit ff31cfc

Please sign in to comment.