diff options
author | 2024-01-09 07:15:57 +0100 | |
---|---|---|
committer | 2024-01-10 10:01:50 +0100 | |
commit | 88f8c343fa7d69203ab98bb7abc85fe002014422 (patch) | |
tree | 59252dca047ee6dcd2da1602ea4698851a731e47 /examples/pick_list | |
parent | 025064c9e028ea65cc0c6ff236d42e9861efdda9 (diff) | |
download | iced-88f8c343fa7d69203ab98bb7abc85fe002014422.tar.gz iced-88f8c343fa7d69203ab98bb7abc85fe002014422.tar.bz2 iced-88f8c343fa7d69203ab98bb7abc85fe002014422.zip |
Fix `cross` calculation in `layout::flex`
Diffstat (limited to 'examples/pick_list')
-rw-r--r-- | examples/pick_list/src/main.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/pick_list/src/main.rs b/examples/pick_list/src/main.rs index bfd642f5..e4d96dc8 100644 --- a/examples/pick_list/src/main.rs +++ b/examples/pick_list/src/main.rs @@ -1,4 +1,4 @@ -use iced::widget::{column, container, pick_list, scrollable, vertical_space}; +use iced::widget::{column, pick_list, scrollable, vertical_space}; use iced::{Alignment, Element, Length, Sandbox, Settings}; pub fn main() -> iced::Result { @@ -48,15 +48,11 @@ impl Sandbox for Example { pick_list, vertical_space(600), ] + .width(Length::Fill) .align_items(Alignment::Center) .spacing(10); - container(scrollable(content)) - .width(Length::Fill) - .height(Length::Fill) - .center_x() - .center_y() - .into() + scrollable(content).into() } } |