Remove padding from Container for now

This commit is contained in:
Héctor Ramón Jiménez 2019-11-11 05:37:51 +01:00
parent ceb02f4a36
commit d4d14b68f4
5 changed files with 13 additions and 23 deletions

View file

@ -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()
}
}