emilk / emilk/egui_plot

plots no longer start next line after filling available horizontal space since 0.23

Open
#15 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
468
Forks
108
Avg merge
15m
Merged PRs (30d)
3

Description

Possibly related to https://github.com/emilk/egui/issues/3054

**Describe the bug**
In egui 0.22 plots put in a horizontal_wrapped ui wrap horizontally as expected.
![image](https://github.com/emilk/egui/assets/5120858/4220c257-9791-4a51-9488-c63d1a8cc2e6)

Since egui 0.23 plots now continue on forever without wrapping, they are instead pushed off screen.
![image](https://github.com/emilk/egui/assets/5120858/7817a327-57c2-4a4e-8c64-aeaecfabde5a)

**To Reproduce**
Put this code in the eframe template
```rust
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):**
* Occurs on Arch linux Desktop
* Occurs on firefox web

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.