Draw button inside a text box #7592
Answered
by
itsNiccoloSabatini
itsNiccoloSabatini
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
itsNiccoloSabatini
Jan 9, 2026
Replies: 1 comment 1 reply
-
|
Hi Maybe you can try to use a Layout https://docs.rs/egui/latest/egui/struct.Layout.html ui.with_layout(egui::Layout::top_down_justified(egui::Align::LEFT),|ui| {
// widgets
});Some layout |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


it works only if it's pure UI, not if it's inside a
ui.horizontal(...)orui.vertical_centered(...), I've found a workaround for that that allow me to draw inside of the "box"Rectthat the TextBox produces.