summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-05 15:19:37 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-05 15:19:37 +0200
commit3838203dff120391282c45935ded456ba9d2884d (patch)
treea745932cf83875a6923189c57f4d787508567d4a /examples
parent9fb48137b062d2cc2974a1cd436e7d955a4acaa1 (diff)
downloadiced-3838203dff120391282c45935ded456ba9d2884d.tar.gz
iced-3838203dff120391282c45935ded456ba9d2884d.tar.bz2
iced-3838203dff120391282c45935ded456ba9d2884d.zip
Apply `padding` to root in `tour` example
Diffstat (limited to 'examples')
-rw-r--r--examples/tour/main.rs1
-rw-r--r--examples/tour/tour.rs1
2 files changed, 1 insertions, 1 deletions
diff --git a/examples/tour/main.rs b/examples/tour/main.rs
index 4dbd5833..1a9ba362 100644
--- a/examples/tour/main.rs
+++ b/examples/tour/main.rs
@@ -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);
diff --git a/examples/tour/tour.rs b/examples/tour/tour.rs
index 0a8d0a11..d0be99b0 100644
--- a/examples/tour/tour.rs
+++ b/examples/tour/tour.rs
@@ -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)