Remove the use of YGUndefined for flex-basis

Summary: Remove the use of YGUndefined for default flex-basis value

Reviewed By: emilsjolander

Differential Revision: D7243924

fbshipit-source-id: 2bfaca1a5e3da40d5292a273cabf705f59c9d666
This commit is contained in:
Pritesh Nandgaonkar
2018-03-14 04:17:18 -07:00
committed by Facebook Github Bot
parent 877c275a13
commit d567885070
2 changed files with 49 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ YGStyle::YGStyle()
flex(YGFloatOptionalUndefined),
flexGrow(YGFloatOptionalUndefined),
flexShrink(YGFloatOptionalUndefined),
flexBasis(kYGValueAuto),
flexBasis({0, YGUnitAuto}),
margin(kYGDefaultEdgeValuesUnit),
position(kYGDefaultEdgeValuesUnit),
padding(kYGDefaultEdgeValuesUnit),