Add errata supporting changes to position: static (#1434)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1434 X-link: https://github.com/facebook/react-native/pull/41130 I will use this errata to gate my changes that actually make position: static behave like the web. We have future plans to make position: relative the default again but users could still have declared certain nodes as position: static, so I think this is needed regardless. Reviewed By: NickGerleman Differential Revision: D50506915 fbshipit-source-id: b0d9e6883167de6ff002352c9288053324464cb9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6cc9e58246
commit
52ae53a7c8
@@ -13,6 +13,7 @@ public enum YogaErrata {
|
||||
NONE(0),
|
||||
STRETCH_FLEX_BASIS(1),
|
||||
STARTING_ENDING_EDGE_FROM_FLEX_DIRECTION(2),
|
||||
POSITION_STATIC_BEHAVES_LIKE_RELATIVE(4),
|
||||
ALL(2147483647),
|
||||
CLASSIC(2147483646);
|
||||
|
||||
@@ -31,6 +32,7 @@ public enum YogaErrata {
|
||||
case 0: return NONE;
|
||||
case 1: return STRETCH_FLEX_BASIS;
|
||||
case 2: return STARTING_ENDING_EDGE_FROM_FLEX_DIRECTION;
|
||||
case 4: return POSITION_STATIC_BEHAVES_LIKE_RELATIVE;
|
||||
case 2147483647: return ALL;
|
||||
case 2147483646: return CLASSIC;
|
||||
default: throw new IllegalArgumentException("Unknown enum value: " + value);
|
||||
|
Reference in New Issue
Block a user