fix issue with plot buttons running out of usable display space

This commit is contained in:
jess 2026-05-15 23:54:06 -07:00
parent 94a930fe3b
commit d7ce1f114f
1 changed files with 8 additions and 2 deletions

View File

@ -1645,12 +1645,18 @@ impl App {
plot::view::<Message>(p, samples, sim.frame_idx, sim.buffer_size.max(1));
let pane = column![mode_row, plot_canvas]
.spacing(2)
.width(Length::FillPortion(1))
.width(Length::Fixed(420.0))
.height(Length::Fill);
pane_row = pane_row.push(pane);
}
let scroll = scrollable(pane_row)
.direction(iced::widget::scrollable::Direction::Horizontal(
iced::widget::scrollable::Scrollbar::default()
))
.width(Length::Fill)
.height(Length::Fill);
body = body.push(
container(pane_row)
container(scroll)
.width(Length::Fill)
.height(Length::FillPortion(1))
.padding(4)