mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Bug fix: make sure child Ui:s have own Id
This commit is contained in:
@@ -94,7 +94,7 @@ impl Ui {
|
||||
let min_rect = layout.rect_from_cursor_size(cursor, min_size);
|
||||
|
||||
Ui {
|
||||
id: self.id,
|
||||
id: self.id.with("child"),
|
||||
next_auto_id: Id::new(self.next_auto_id).with("child").value(),
|
||||
painter: self.painter.clone(),
|
||||
min_rect,
|
||||
|
||||
Reference in New Issue
Block a user