Change the type of flexGrow to YGFloatOptional
Summary: Change the type of flexGrow to YGFloatOptional Reviewed By: emilsjolander Differential Revision: D7215355 fbshipit-source-id: 1298ee332551d44e4d070169a1e4103d005c4f43
This commit is contained in:
committed by
Facebook Github Bot
parent
2232d7603a
commit
8aadae8ce4
@@ -592,8 +592,8 @@ float YGNode::resolveFlexGrow() {
|
||||
if (parent_ == nullptr) {
|
||||
return 0.0;
|
||||
}
|
||||
if (!YGFloatIsUndefined(style_.flexGrow)) {
|
||||
return style_.flexGrow;
|
||||
if (!style_.flexGrow.isUndefined) {
|
||||
return style_.flexGrow.value;
|
||||
}
|
||||
if (!style_.flex.isUndefined && style_.flex.value > 0.0f) {
|
||||
return style_.flex.value;
|
||||
|
Reference in New Issue
Block a user