mirror of
https://github.com/bevyengine/bevy.git
synced 2026-06-30 07:45:50 -04:00
8ce450bd98
# Objective Text is wrapped to fit inside the node's content box but the node is sized as though the text isn't wrapped. Fixes #24664 ## Solution Subtract the total of the horizontal padding and border insets. ## Testing Added the replication from #24664 to `testbed_ui`'s `TextWrap` scene: ``` cargo run --example testbed_ui -- textwrap ``` <img width="500" alt="image" src="https://github.com/user-attachments/assets/e37884d1-7ae6-4aab-b16f-c5af004f5556" /> --- The other examples, particularly `text_debug`, shouldn't demonstrate any changes. --------- Co-authored-by: Dimitrios Loukadakis <dloukadakis@users.noreply.github.com>