diff options
Diffstat (limited to 'examples/scroll.rs')
-rw-r--r-- | examples/scroll.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/scroll.rs b/examples/scroll.rs index 5a725f0c..98206268 100644 --- a/examples/scroll.rs +++ b/examples/scroll.rs @@ -1,6 +1,6 @@ use iced::{ - button, scrollable, Align, Application, Button, Column, Element, Image, - Justify, Length, Scrollable, Text, + button, scrollable, Align, Application, Button, Column, Container, Element, + Image, Length, Scrollable, Text, }; pub fn main() { @@ -65,11 +65,10 @@ impl Application for Example { .border_radius(5), ); - Column::new() + Container::new(content) + .width(Length::Fill) .height(Length::Fill) - .justify_content(Justify::Center) - .padding(20) - .push(content) + .center_y() .into() } } |