-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the SizeSpec of AT_MOST is not reset correctly
Summary: # Context This issue is causing a crash(https://www.internalfb.com/logview/facebook_android_crashes/c0538e852d03501c9aaddfb4a2669bff), which is because we didn't reset auto size for Yoga correctly. According to the doc(https://www.w3.org/TR/css-sizing-3/#sizing-properties), the default value of width/height for `YogaNode` should be `AUTO` instead of `UNDEFINED`. Otherwise, Yoga will use an invalid SizeSpec to re-measure RecyclerCollectionComponent and lead to a crash in the end. Reviewed By: adityasharat Differential Revision: D45947858 fbshipit-source-id: 7ad62b6f9a0db3d5ea7eaf65fccd1a0c90665f44
- Loading branch information
1 parent
5845ff6
commit dc1bc0f
Showing
3 changed files
with
124 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters