How do i add an n
pixels gap between two widgets?
#269
Answered
by
emilk
abhijeetbhagat
asked this question in
Q&A
-
I've tried |
Beta Was this translation helpful? Give feedback.
Answered by
emilk
Apr 2, 2021
Replies: 1 comment 1 reply
-
But a more straightforward way is to call |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
emilk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
item_spacing
should work if you call it before adding the first of the two widgets (that's a bit counter-intuitive and is because spacing is applied after adding a widget)But a more straightforward way is to call
ui.advance_cursor(50.0);
. I will rename that toui.add_space(50.0);
in the next release of egui.