Add support for space-between and space-around on align-content
Summary: Adds the two missing alignments ```space-between``` and ```space-around``` for ```align-content``` . Those values are a noop on ```align-items``` in order to prevent a breaking changes for an additional enum. Fix #229 Closes https://github.com/facebook/yoga/pull/364 Reviewed By: gkassabli Differential Revision: D4528561 Pulled By: emilsjolander fbshipit-source-id: ea6291b6dd22cef05d9eec03893250d50371236e
This commit is contained in:
committed by
Facebook Github Bot
parent
247aa26d3e
commit
6a7ad2125d
@@ -18,7 +18,9 @@ public enum YogaAlign {
|
||||
CENTER(2),
|
||||
FLEX_END(3),
|
||||
STRETCH(4),
|
||||
BASELINE(5);
|
||||
BASELINE(5),
|
||||
SPACE_BETWEEN(6),
|
||||
SPACE_AROUND(7);
|
||||
|
||||
private int mIntValue;
|
||||
|
||||
@@ -38,6 +40,8 @@ public enum YogaAlign {
|
||||
case 3: return FLEX_END;
|
||||
case 4: return STRETCH;
|
||||
case 5: return BASELINE;
|
||||
case 6: return SPACE_BETWEEN;
|
||||
case 7: return SPACE_AROUND;
|
||||
default: throw new IllegalArgumentException("Unknown enum value: " + value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user