Fix possible invalid measurements when width or height is zero pixels #1820
Reference in New Issue
Block a user
No description provided.
Delete Branch "export-D76793705"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary:
Yoga has a fast path when measuring a node, if it thinks it knows its dimensions ahead of time.
This path has some eroneous logic, to set both axis to owner size, if either will evaluate to zero, while having an
YGMeasureModeAtMost
/FitContent
constraint. This means that if a node is given a zero width, and Yoga later measures with withFitContent
, its height will become the maximum allowable height, even if it shouldn't be that large.We can fix this, by only allowing if both axis are this fixed case, instead of just one.
Changelog:
[General][Fixed] - Fix possible invalid measurements with width or height is zero pixels
Differential Revision: D76793705
The latest updates on your projects. Learn more about Vercel for Git ↗︎
This pull request was exported from Phabricator. Differential Revision: D76793705
This pull request was exported from Phabricator. Differential Revision: D76793705
This pull request was exported from Phabricator. Differential Revision: D76793705
This pull request has been merged in facebook/yoga@27d632c697.
This pull request has been reverted by
30291398f3
.Pull request closed