From 5fae6e59ffbc5913761df638dc7f0c35b7f43bc9 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 20 Sep 2021 14:33:02 +0700 Subject: Introduce and use `CrossAlign` enum for `Column` and `Row` --- examples/pick_list/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/pick_list') diff --git a/examples/pick_list/src/main.rs b/examples/pick_list/src/main.rs index 1eec9791..363d3222 100644 --- a/examples/pick_list/src/main.rs +++ b/examples/pick_list/src/main.rs @@ -1,5 +1,5 @@ use iced::{ - pick_list, scrollable, Align, Container, Element, Length, PickList, + pick_list, scrollable, Container, CrossAlign, Element, Length, PickList, Sandbox, Scrollable, Settings, Space, Text, }; @@ -49,7 +49,7 @@ impl Sandbox for Example { let mut content = Scrollable::new(&mut self.scroll) .width(Length::Fill) - .align_items(Align::Center) + .align_items(CrossAlign::Center) .spacing(10) .push(Space::with_height(Length::Units(600))) .push(Text::new("Which is your favorite language?")) -- cgit