summaryrefslogtreecommitdiffstats
path: root/examples/pane_grid
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pane_grid')
-rw-r--r--examples/pane_grid/src/main.rs9
1 files changed, 5 insertions, 4 deletions
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)