Skip to content

Commit

Permalink
Get hug working with text autoHeight
Browse files Browse the repository at this point in the history
When measuring text, we need to make sure to always use the wrap value when effectiveSizing is set to autoHeight because we need to compute the correct height. This affects layouts which were set to hug text objects that were set to autoHeight.

Before:
<img width="337" alt="Screenshot 2025-01-28 at 1 33 08 PM" src="https://github.com/user-attachments/assets/b9bec882-24a3-4d33-bb7b-83ca5255c2d2" />

After:
<img width="345" alt="Screenshot 2025-01-28 at 1 33 29 PM" src="https://github.com/user-attachments/assets/745498d5-aa0e-439d-b15f-3b03c6622bbf" />

Diffs=
16063fdc26 Get hug working with text autoHeight (#8928)
  • Loading branch information
philter committed Jan 28, 2025
1 parent eba94e3 commit b074534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bf57f85d7fb6e30a2070ae4f104b8ec49e99c2fe
16063fdc261215e9388660e637d81d8373bf2e8c
2 changes: 1 addition & 1 deletion wasm/submodules/rive-runtime

0 comments on commit b074534

Please sign in to comment.