Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Customer exposed a Yoga crash that occurs under a specific scenario 1. Artboard contains at least 1 layout that has a margin value set to use % (the actual value of the margin does not appear to matter). 2. Artboard subsequently gets sized to a negative width or height value This causes an editor crash (quits immediately) with the error: `availableWidth is indefinite so widthMeasureMode must be YGMeasureModeUndefined` The proposed fix for this is to prevent negative width/height values from getting passed down to Yoga. This should not affect existing behavior because currently when negative values are passed down, Yoga does not return bounds values less than 0. Simplified file attached. [MarginCrash.rev.zip](https://github.com/user-attachments/files/18101320/MarginCrash.rev.zip) Diffs= ab29c640cc Prevent negative layout size (#8731)
- Loading branch information