Skip to content
Discussion options

You must be logged in to vote

For setting the width of a TextEdit, egui::TextEdit::desired_width seems to work. (so for example for a textedit that takes up just the space of its text, TextEdit::singleline(text).desired_width(0.0).clip_text(false).show() works)
This of course affects the minimum, and not the maximum size. For the latter, you can use the add_sized method as described here previously.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Xerxes004
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by UnknownSuperficialNight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants