mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
CentralPanel: base id on the current viewport (#3593)
This means two `CentralPanel`s in different viewports get different ids, avoiding id clashes
This commit is contained in:
@@ -33,9 +33,7 @@ impl super::Demo for ExtraViewport {
|
||||
});
|
||||
} else {
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
ui.push_id(id, |ui| {
|
||||
viewport_content(ui, ctx, open);
|
||||
})
|
||||
viewport_content(ui, ctx, open);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user