You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As this Screenshot shows, almost all the items have names that would take up more than the allowed width. But weirdly enough, the ones that have the first word take up the max_width or more, overflow. The ones that would take up >= max_width but with separate words in between them don't overflow. They clip, as expected.
Just so you have an Idea of how long the names are, here it is without a max_height property:
Additional information
Just wanted to know if this is considered a bug, (I'm pretty sure it is). Or if it's expected behaviour.
This isn't really the worst bug, I could just limit the characters and remove any length of characters past some formula calculating available width.
Thanks to the bevy devs for your work!
The text was updated successfully, but these errors were encountered:
Reporting a similar problem, wrapping in a child node bundle did not help. This is my setup:
The red area is a child node bundle with just the text. The parent is the white bubble you see. Both the bubble and the text node have a width and height set (hence the red highlight.) Both have clipping in both axes set.
When I made the height smaller, it kept showing the text until a threshold, then it finally clipped it.
Bevy version
0.13
Relevant system information
cargo 1.77.0-nightly (1ae631085 2024-01-17)
AdapterInfo { name: "Apple M1 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
What you did
Added a TextBundle with a max_width of 80% of the parent, Overflow::Clip on both axis.
Item holder (Parent) (Corresponds to any slot that's blue in the screenshot)
Text inside parent (This is where the problem is)
What went wrong
As this Screenshot shows, almost all the items have names that would take up more than the allowed width. But weirdly enough, the ones that have the first word take up the max_width or more, overflow. The ones that would take up >= max_width but with separate words in between them don't overflow. They clip, as expected.
Just so you have an Idea of how long the names are, here it is without a max_height property:
Additional information
Just wanted to know if this is considered a bug, (I'm pretty sure it is). Or if it's expected behaviour.
This isn't really the worst bug, I could just limit the characters and remove any length of characters past some formula calculating available width.
Thanks to the bevy devs for your work!
The text was updated successfully, but these errors were encountered: