Replies: 1 comment
-
If there is no problem with truncate instead of wrap, the following code can be used to create it. CollapsingState::load_with_default_open(
ui.ctx(),
id,
false,
)
.show_header(ui, |ui| {
Label::new(name).truncate(true).ui(ui)
})
.body(|ui| {
... your collapsing contents
}); I've never done it, but if you do it right, you may be able to handle the turnaround! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a
ui
that i'd like to keep aroundx=400
, and it has a bunch of collapsing headers in it. The wrapping APIs seem to not affect CollapsingHeaders.Is there a nice way to make these things wrap their text if they exceed a certain width?
Beta Was this translation helpful? Give feedback.
All reactions