We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
id_salt
Describe the bug TableBuilder.id_salt does not result in unique table scroll areas.
TableBuilder.id_salt
To Reproduce
use eframe::egui; use egui_extras::{Column, TableBuilder}; fn main() -> eframe::Result { let options = eframe::NativeOptions { viewport: egui::ViewportBuilder::default().with_inner_size([320.0, 240.0]), ..Default::default() }; eframe::run_native("My egui App", options, Box::new(|_| Ok(Box::new(MyApp {})))) } struct MyApp {} impl eframe::App for MyApp { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { egui::CentralPanel::default().show(ctx, |ui| { ui.horizontal(|ui| { let mut table = |salt| { //ui.push_id(salt, |ui| { TableBuilder::new(ui) .id_salt(salt) .column(Column::initial(60.0)) .vscroll(true) .body(|body| { body.rows(30.0, 100, |mut row| { let index = row.index(); row.col(|ui| { ui.label(format!("{index}")); }); }); }) //}); }; table("left"); table("right"); }); }); } }
Despite setting different ID salts, a warning appears (reused scroll area id) and the tables scroll together.
Uncommenting the push_id call results in correct behavior.
push_id
Expected behavior Using id_salt with distinct salts should result in independently scrolling tables.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Use id_salt on Table ScrollArea
aa29f76
The salt is based on the table's `state_id`. Fixes emilk#5281
Successfully merging a pull request may close this issue.
Describe the bug
TableBuilder.id_salt
does not result in unique table scroll areas.To Reproduce
Despite setting different ID salts, a warning appears (reused scroll area id) and the tables scroll together.
Uncommenting the
push_id
call results in correct behavior.Expected behavior
Using
id_salt
with distinct salts should result in independently scrolling tables.Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: