From 7c1f06941e0c4235fc27d35dfbb18cd044ea4c94 Mon Sep 17 00:00:00 2001 From: Justin Whear Date: Wed, 23 Oct 2024 01:48:09 -0700 Subject: [PATCH] Use id_salt on Table ScrollArea (#5282) The salt is based on the table's `state_id`. * Closes https://github.com/emilk/egui/issues/5281 * [x] I have followed the instructions in the PR template --- crates/egui_extras/src/table.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/egui_extras/src/table.rs b/crates/egui_extras/src/table.rs index 7f9c81109fa..2be2e25bb77 100644 --- a/crates/egui_extras/src/table.rs +++ b/crates/egui_extras/src/table.rs @@ -743,6 +743,7 @@ impl<'a> Table<'a> { let cursor_position = ui.cursor().min; let mut scroll_area = ScrollArea::new([false, vscroll]) + .id_salt(state_id.with("__scroll_area")) .drag_to_scroll(drag_to_scroll) .stick_to_bottom(stick_to_bottom) .min_scrolled_height(min_scrolled_height)