Remove padding from Container for now
This commit is contained in:
parent
ceb02f4a36
commit
d4d14b68f4
5 changed files with 13 additions and 23 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue