Apply padding to root in tour example
This commit is contained in:
parent
9fb48137b0
commit
3838203dff
2 changed files with 1 additions and 1 deletions
|
|
@ -139,6 +139,7 @@ impl event::EventHandler for Game {
|
||||||
let content = Column::new()
|
let content = Column::new()
|
||||||
.width(screen.w as u16)
|
.width(screen.w as u16)
|
||||||
.height(screen.h as u16)
|
.height(screen.h as u16)
|
||||||
|
.padding(20)
|
||||||
.align_items(iced::Align::Center)
|
.align_items(iced::Align::Center)
|
||||||
.justify_content(iced::Justify::Center)
|
.justify_content(iced::Justify::Center)
|
||||||
.push(view);
|
.push(view);
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,6 @@ impl Tour {
|
||||||
|
|
||||||
let element: Element<_> = Column::new()
|
let element: Element<_> = Column::new()
|
||||||
.max_width(500)
|
.max_width(500)
|
||||||
.padding(20)
|
|
||||||
.spacing(20)
|
.spacing(20)
|
||||||
.push(steps.view(self.debug).map(Message::StepMessage))
|
.push(steps.view(self.debug).map(Message::StepMessage))
|
||||||
.push(controls)
|
.push(controls)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue