Replies: 1 comment
-
For anyone else who's come searching for this, the workaround is to set the margins manually on each of the panels like so: egui::CentralPanel::default()
.frame(egui::Frame::default().inner_margin(0.0))
.show(...) |
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 tried to put the following in the
update
function (before anything gets drawn):I also tried doing similar before the
update
function is ever called, and it still doesn't work. There's nothing in theViewportBuilder
that will let me achieve this either.The only workaround is to manually set the margins for each top/bottom, side, and (the single) central panel. This seems inefficient. There is a
Frame
somewhere in the code for the window, and there must be a way to access it. I'm just not seeing it.Beta Was this translation helpful? Give feedback.
All reactions