1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

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

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)