mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -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);
|
let min_rect = layout.rect_from_cursor_size(cursor, min_size);
|
||||||
|
|
||||||
Ui {
|
Ui {
|
||||||
id: self.id,
|
id: self.id.with("child"),
|
||||||
next_auto_id: Id::new(self.next_auto_id).with("child").value(),
|
next_auto_id: Id::new(self.next_auto_id).with("child").value(),
|
||||||
painter: self.painter.clone(),
|
painter: self.painter.clone(),
|
||||||
min_rect,
|
min_rect,
|
||||||
|
|||||||
Reference in New Issue
Block a user