explicit default justifyContent value

Summary:
make default justifyContent value explicit like alignItems

https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content

https://developer.mozilla.org/en-US/docs/Web/CSS/align-items

https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
Closes https://github.com/facebook/yoga/pull/293

Differential Revision: D4351597

Pulled By: emilsjolander

fbshipit-source-id: b65ff2284ede4d75f1cc5e22d4106042ab0b0d02
This commit is contained in:
yiminghe
2016-12-20 03:20:49 -08:00
committed by Facebook Github Bot
parent 74fb205083
commit 9d35dce63e

View File

@@ -197,6 +197,7 @@ static void YGNodeInit(const YGNodeRef node) {
node->style.flexBasis = YGUndefined; node->style.flexBasis = YGUndefined;
node->style.alignItems = YGAlignStretch; node->style.alignItems = YGAlignStretch;
node->style.justifyContent = YGJustifyFlexStart;
node->style.alignContent = YGAlignFlexStart; node->style.alignContent = YGAlignFlexStart;
node->style.direction = YGDirectionInherit; node->style.direction = YGDirectionInherit;