mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Constrain demo windows to the space left after the panels (#7785)
This commit is contained in:
@@ -68,6 +68,7 @@ impl<State> AppKind<'_, State> {
|
||||
}
|
||||
ui.scope_builder(builder, |ui| {
|
||||
Frame::central_panel(ui.style())
|
||||
// Only set outer margin, so we show no frame for tests with only free-floating windows/popups:
|
||||
.outer_margin(8.0)
|
||||
.inner_margin(0.0)
|
||||
.show(ui, |ui| match self {
|
||||
|
||||
Reference in New Issue
Block a user