fix issue with plot buttons running out of usable display space
This commit is contained in:
parent
94a930fe3b
commit
d7ce1f114f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue