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
Possibly related to emilk/egui#3054
Describe the bug In egui 0.22 plots put in a horizontal_wrapped ui wrap horizontally as expected.
Since egui 0.23 plots now continue on forever without wrapping, they are instead pushed off screen.
To Reproduce Put this code in the eframe template
ui.horizontal_wrapped(|ui| { for i in 0..10 { let plot = Plot::new(format!("foo{i}")) .legend(Legend::default()) .width(500.0) .height(250.0) .allow_scroll(false); plot.show(ui, |_| {}); } });
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
For the record, it works correctly if you use add_sized.
add_sized
ui.horizontal_wrapped(|ui| { for i in 0..10 { let width = 500.0; let height = 250.0; let plot = Plot::new(format!("foo{i}")) .legend(Legend::default()) .width(width) .height(height) .allow_scroll(false); ui.add_sized([width, height], |ui: &mut egui::Ui| { plot.show(ui, |_| {}).response }); } });
There's still a bug, of course, but that's an easy workaround if anyone needs it, and could be a clue for how to fix it in the plot itself.
Sorry, something went wrong.
I'm noticing you are also affected by #13, it's probably unrelated but worth noting.
Group
No branches or pull requests
Possibly related to emilk/egui#3054
Describe the bug
In egui 0.22 plots put in a horizontal_wrapped ui wrap horizontally as expected.
Since egui 0.23 plots now continue on forever without wrapping, they are instead pushed off screen.
To Reproduce
Put this code in the eframe template
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: