summaryrefslogtreecommitdiffstats
path: root/examples/pick_list
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-09 07:15:57 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-10 10:01:50 +0100
commit88f8c343fa7d69203ab98bb7abc85fe002014422 (patch)
tree59252dca047ee6dcd2da1602ea4698851a731e47 /examples/pick_list
parent025064c9e028ea65cc0c6ff236d42e9861efdda9 (diff)
downloadiced-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.rs10
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()
}
}