Fix: use unique id for resize columns in `Table` (#7414)
Currently the IDs for resize columns in Table are based on the ID of parent. When placing multiple tables within the same parent the ID clash for resize columns occurs despite the [TableBuilder::id_salt](https://docs.rs/egui_extras/0.32.0/egui_extras/struct.TableBuilder.html#method.id_salt) is being used.
This commit is contained in:
parent
0fad7d8503
commit
2957fd56a5
|
|
@ -851,7 +851,7 @@ impl Table<'_> {
|
|||
if column.is_auto() && (is_sizing_pass || !column_is_resizable) {
|
||||
*column_width = width_range.clamp(max_used_widths[i]);
|
||||
} else if column_is_resizable {
|
||||
let column_resize_id = ui.id().with("resize_column").with(i);
|
||||
let column_resize_id = state_id.with("resize_column").with(i);
|
||||
|
||||
let mut p0 = egui::pos2(x, table_top);
|
||||
let mut p1 = egui::pos2(x, bottom);
|
||||
|
|
|
|||
Loading…
Reference in New Issue