From 8d365200addda16ed8173e3cc5f6cbedbe58c74b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 2 Nov 2020 22:50:47 +0100 Subject: [PATCH] Bug fix: accidental reuse of Id:s for columns Fixes https://github.com/emilk/egui/issues/37 --- egui/src/ui.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/egui/src/ui.rs b/egui/src/ui.rs index 9cd327ae..e6f15f94 100644 --- a/egui/src/ui.rs +++ b/egui/src/ui.rs @@ -849,11 +849,7 @@ impl Ui { pos, pos2(pos.x + column_width, self.max_rect.right_bottom().y), ); - - Self { - id: self.make_child_id(&("column", col_idx)), - ..self.child_ui(child_rect, self.layout) - } + self.child_ui(child_rect, self.layout) }) .collect();