-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI text wrapping and LineBreakOn
example
#7761
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good, pointed out a couple of typos that were freaking the CI. Should also have an entry in the examples/README.md
. No text-wrapping behavior worked on my environment (Metal), but that's an Issue for another day.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.