Bug fix: make sure child Ui:s have own Id

This commit is contained in:
Emil Ernerfeldt 2020-11-28 12:39:32 +01:00
parent 8163f912d3
commit ab61f98a13

View file

@ -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,