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/pane_grid/src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'examples/pane_grid') diff --git a/examples/pane_grid/src/main.rs b/examples/pane_grid/src/main.rs index 5a134756..737c9126 100644 --- a/examples/pane_grid/src/main.rs +++ b/examples/pane_grid/src/main.rs @@ -1,7 +1,8 @@ use iced::{ - button, executor, keyboard, pane_grid, scrollable, Align, Application, - Button, Color, Column, Command, Container, Element, HorizontalAlignment, - Length, PaneGrid, Row, Scrollable, Settings, Subscription, Text, + button, executor, keyboard, pane_grid, scrollable, Application, Button, + Color, Column, Command, Container, CrossAlign, Element, + HorizontalAlignment, Length, PaneGrid, Row, Scrollable, Settings, + Subscription, Text, }; use iced_native::{event, subscription, Event}; @@ -329,7 +330,7 @@ impl Content { let content = Scrollable::new(scroll) .width(Length::Fill) .spacing(10) - .align_items(Align::Center) + .align_items(CrossAlign::Center) .push(controls); Container::new(content) -- cgit