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/bezier_tool/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/bezier_tool/src') diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs index 97832e01..b17f5726 100644 --- a/examples/bezier_tool/src/main.rs +++ b/examples/bezier_tool/src/main.rs @@ -1,6 +1,7 @@ //! This example showcases an interactive `Canvas` for drawing Bézier curves. use iced::{ - button, Align, Button, Column, Element, Length, Sandbox, Settings, Text, + button, Button, Column, CrossAlign, Element, Length, Sandbox, Settings, + Text, }; pub fn main() -> iced::Result { @@ -51,7 +52,7 @@ impl Sandbox for Example { Column::new() .padding(20) .spacing(20) - .align_items(Align::Center) + .align_items(CrossAlign::Center) .push( Text::new("Bezier tool example") .width(Length::Shrink) -- cgit