diff --git a/src/main.rs b/src/main.rs index 73a0a53..66200df 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,10 @@ use iced::{Application, Element, Settings, Subscription, window}; use iced::{ Color, Length, Task, Theme, time::{self, Duration}, - widget::{Column, TextInput, button, canvas, column, container, pick_list, row, slider, text}, + widget::{ + Column, TextInput, button, canvas, column, container, pick_list, row, scrollable, slider, + text, + }, }; use serde::{Deserialize, Serialize}; @@ -273,7 +276,7 @@ impl MyApp { .chain(ngon_options) .collect(); - let polygon_column = Column::with_children(polygon_rows); + let polygon_column = scrollable(Column::with_children(polygon_rows)); let mut save_panel: Vec> = vec![ button("Toggle Save Panel") .on_press(Message::ToggleSavePanel) @@ -302,7 +305,7 @@ impl MyApp { row![ container( canvas(&self.poly_frame) - .height(Length::FillPortion(2)) + .height(Length::FillPortion(1)) .width(Length::FillPortion(1)) ), column![ @@ -318,9 +321,10 @@ impl MyApp { polygon_column.spacing(10), ] .spacing(10) - .height(Length::FillPortion(2)) + .height(Length::FillPortion(1)) .width(Length::FillPortion(2)), ] + .height(Length::FillPortion(2)) .spacing(20), row![text("futur time line")] .height(Length::FillPortion(1))