Skip to content

Commit

Permalink
[TIMOB-26211] Round percentage up instead of down (parity) (#10194)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Jul 25, 2018
1 parent 3394e8e commit 30c1e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/Classes/TiDimension.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ TI_INLINE BOOL TiDimensionDidCalculateValue(TiDimension dimension, CGFloat bound
*result = dimension.value;
return YES;
case TiDimensionTypePercent:
*result = roundf(dimension.value * boundingValue);
*result = floorf(dimension.value * boundingValue);
return YES;
default: {
break;
Expand Down

0 comments on commit 30c1e62

Please sign in to comment.