Change the type of aspect Ratio to YGFloatOptional

Summary: Change the type of aspect Ratio to YGFloatOptional

Reviewed By: emilsjolander

Differential Revision: D7302651

fbshipit-source-id: 53e3b4c9627207a379f927b1f3485e36a9c70601
This commit is contained in:
Pritesh Nandgaonkar
2018-04-03 14:56:29 -07:00
committed by Facebook Github Bot
parent fe433b012f
commit d85e2ee9c3
3 changed files with 45 additions and 28 deletions

View File

@@ -32,7 +32,7 @@ struct YGStyle {
std::array<YGValue, 2> dimensions;
std::array<YGValue, 2> minDimensions;
std::array<YGValue, 2> maxDimensions;
float aspectRatio;
YGFloatOptional aspectRatio;
YGStyle();
// Yoga specific properties, not compatible with flexbox specification