Add justify-content: space-evenly
Summary: Adds new ```space-evenly``` for ```justify-content```. Also adds a typofix in one of the other justify-content tests. Fixes #657 Closes https://github.com/facebook/yoga/pull/658 Differential Revision: D6407996 Pulled By: emilsjolander fbshipit-source-id: cc837409e1345624b4bd72c31e25fe68dcb0f6a3
This commit is contained in:
committed by
Facebook Github Bot
parent
5e39f1a57c
commit
7e3be21811
@@ -17,7 +17,8 @@ public enum YogaJustify {
|
||||
CENTER(1),
|
||||
FLEX_END(2),
|
||||
SPACE_BETWEEN(3),
|
||||
SPACE_AROUND(4);
|
||||
SPACE_AROUND(4),
|
||||
SPACE_EVENLY(5);
|
||||
|
||||
private int mIntValue;
|
||||
|
||||
@@ -36,6 +37,8 @@ public enum YogaJustify {
|
||||
case 2: return FLEX_END;
|
||||
case 3: return SPACE_BETWEEN;
|
||||
case 4: return SPACE_AROUND;
|
||||
case 5:
|
||||
return SPACE_EVENLY;
|
||||
default: throw new IllegalArgumentException("Unknown enum value: " + value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user