Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass scaleType down to sizeable children
Passing scaleType down to Layout sizeable children fixes a bug we were seeing where layout components hugging text objects set to autoWidth would sometimes inadvertently wrap when animation occurs that changes computed text bounds width. This was because once the Layout pushes a size down to Text.controlSize, the effectiveSize returned becomes fixed. This can conflict with the size we measured previously because we measured when the effectiveSize was autoWidth, causing a text wrap flicker until it corrects itself. Had to change the API so several files were affected, but only Text currently uses the scaleType values. Before: https://github.com/user-attachments/assets/34b495ca-edf3-4b27-a7bb-dc69f16517df After: https://github.com/user-attachments/assets/c55bc14b-2809-4ce3-81aa-fc59e245a4b7 Diffs= 97050e4fa7 Pass scaleType down to sizeable children (#8524)
- Loading branch information