Apply padding to root in tour example

This commit is contained in:
Héctor Ramón Jiménez 2019-09-05 15:19:37 +02:00
parent 9fb48137b0
commit 3838203dff
2 changed files with 1 additions and 1 deletions

View File

@ -139,6 +139,7 @@ impl event::EventHandler for Game {
let content = Column::new()
.width(screen.w as u16)
.height(screen.h as u16)
.padding(20)
.align_items(iced::Align::Center)
.justify_content(iced::Justify::Center)
.push(view);

View File

@ -66,7 +66,6 @@ impl Tour {
let element: Element<_> = Column::new()
.max_width(500)
.padding(20)
.spacing(20)
.push(steps.view(self.debug).map(Message::StepMessage))
.push(controls)