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/events/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/events/src') diff --git a/examples/events/src/main.rs b/examples/events/src/main.rs index 911ff425..398b321f 100644 --- a/examples/events/src/main.rs +++ b/examples/events/src/main.rs @@ -1,7 +1,7 @@ use iced::{ - button, executor, Align, Application, Button, Checkbox, Column, Command, - Container, Element, HorizontalAlignment, Length, Settings, Subscription, - Text, + button, executor, Application, Button, Checkbox, Column, Command, + Container, CrossAlign, Element, HorizontalAlignment, Length, Settings, + Subscription, Text, }; use iced_native::{window, Event}; @@ -98,7 +98,7 @@ impl Application for Events { .on_press(Message::Exit); let content = Column::new() - .align_items(Align::Center) + .align_items(CrossAlign::Center) .spacing(20) .push(events) .push(toggle) -- cgit