Skip to content
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

[Discussion] Text truncate mode in StripBuilders #5248

Open
StarStarJ opened this issue Oct 11, 2024 · 0 comments
Open

[Discussion] Text truncate mode in StripBuilders #5248

StarStarJ opened this issue Oct 11, 2024 · 0 comments

Comments

@StarStarJ
Copy link
Contributor

StarStarJ commented Oct 11, 2024

Hey, I use StripBuilders a lot in my app for layouting, I noticed that by default since the new version StripBuilders switch the textmode to truncate:

child_ui.style_mut().wrap_mode = Some(egui::TextWrapMode::Truncate);

if clipping is true.
I can understand this behavior if your only child is a label.

But for complex UIs this has quite some unwanted side effects. For example in grids this changes the auto sizing mode (for the labels):
image

Maybe it would be worth discussing if that is a good default.
Or alternatively maybe Grids should revert that style change?

If you think this is a good default, you can ofc close this issue, then I'd simply change the style back for all my StripBuilders.
I just wanted to discuss if there are better alternatives or to lower the impact of it.

Sweating:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant