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
This commit is contained in:
Justin Whear 2024-10-23 01:48:09 -07:00 committed by GitHub
parent 67a54ec5ce
commit 7c1f06941e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

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