Skip to content

Commit

Permalink
Use id_salt on Table ScrollArea
Browse files Browse the repository at this point in the history
The salt is based on the table's `state_id`.
Fixes #5281
  • Loading branch information
jwhear committed Oct 17, 2024
1 parent 707cd03 commit aa29f76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/egui_extras/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa29f76

Please sign in to comment.