Revert D14554656: [Fabric][C++] Fix parsing of flex-wrap='nowrap'

Differential Revision:
D14554656

Original commit changeset: 259b2cdaf204

fbshipit-source-id: 3bca12f204ff7be85c4901eb01894935e7857d75
This commit is contained in:
Yuan Du
2019-03-23 13:05:13 -07:00
committed by Facebook Github Bot
parent 66e04347d1
commit 146b2839f5

View File

@@ -253,7 +253,7 @@ inline void fromRawValue(const RawValue &value, YGPositionType &result) {
inline void fromRawValue(const RawValue &value, YGWrap &result) {
assert(value.hasType<std::string>());
auto stringValue = (std::string)value;
if (stringValue == "nowrap") {
if (stringValue == "no-wrap") {
result = YGWrapNoWrap;
return;
}