Fix yg_positionType
ordinals (#1183)
Summary:
Fixes https://github.com/facebook/yoga/issues/1179
fc88b2f774
shifted ordinals for the position enum, but only updated a limited set of code for the new values. Binding generation has since been fixed, but https://github.com/facebook/yoga/issues/1179 seems to be another case where the ordinal offsetting means that `yg_positionType` of a `YogaLayout` view does not work correctly.
Update the ordinals in accordance with the ordering in YogaPositionType which the integer value is converted to.
Using "static" (the new position type) directly gives a compilation error due to it being a reserved keyword, so I added it as "position_static" along with aliases to other properties with the same naming scheme for consistency.
Pull Request resolved: https://github.com/facebook/yoga/pull/1183
Reviewed By: lunaleaps
Differential Revision: D41741955
Pulled By: NickGerleman
fbshipit-source-id: 2b035eb38d9efea19af652e5f05c02b0be402d54
This commit is contained in:
committed by
Facebook GitHub Bot
parent
811b46ae63
commit
35f3335efc
2
.github/workflows/validate-android.yml
vendored
2
.github/workflows/validate-android.yml
vendored
@@ -22,4 +22,4 @@ jobs:
|
||||
uses: ./.github/actions/setup-android
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew assemble${{ matrix.mode }}
|
||||
run: ./gradlew assemble${{ matrix.mode }} --stacktrace
|
||||
|
Reference in New Issue
Block a user