UI text wrapping and LineBreakOn example#7761
UI text wrapping and LineBreakOn example#7761alice-i-cecile merged 9 commits intobevyengine:mainfrom
LineBreakOn example#7761Conversation
LineBreakOn example
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
1 similar comment
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
alice-i-cecile
left a comment
There was a problem hiding this comment.
Looks great? Do you have PRs open to fix the remaining text wrap bugs? Could you link them here?
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
I've got one big thing I'm just cleaning up now, it's a mess internally but the output looks great and, it seems to fix all the remaining text layout and wrapping issues. I'll put in a PR tonight or tomorrow morning. It will need more work and some other people's input though, as it makes quite a lot of changes I'm not sure about. |
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
The no text-wrapping is expected as text-wrapping isn't working correctly in bevy main atm. I made this originally as a test case for finding bugs in the text implementation. |
|
I think you meant to link #7779 :) |
|
I'm not sure about this example:
Otherwise, it looks great. :-) |
Yep it's more of a debugging example, if you look at this in Bevy 0.9 it's a horrible mess. The space cases are especially important to get right. Maybe there should be a separate examples section for debugging examples full of sanity checks and edge cases like this. |
Yeah, |
|
Another important use case with this example is to make sure that the text systems respond correctly to window resizing, which is one of the places where the previous attempts to fix text wrapping tended to fail. |
|
I'm trying to tweak this example to use I'm not sure if this is related to #7779; it might be a bug on its own. Commit with gaps: doup@fc0e008 Current: col width < text widthWith
|
|
@doup I think this might be due to |
|
I don't understand why, but Btw, I've found another issue, new ticket created: #8017. |
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
nicoburns
left a comment
There was a problem hiding this comment.
I echo other comments that combining text layout with flex alignment makes this a little confusing. I'd prefer if this was just text layout options. But this generally seems fine.





Objective
An example demonstrating more text layout options, text wrapping and
LineBreakOn.Won't look exactly like this on main because of the remaining bugs in text.