summaryrefslogtreecommitdiffstats
path: root/examples/stopwatch.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 06:04:05 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 06:04:05 +0100
commit5e018965ee99c44fe50f9be8f7b69cd486d183be (patch)
tree65862c87a2835e71ad074e143efbbb6d665a535b /examples/stopwatch.rs
parent89b1ac6eac03bec9e2acb9b4d59da86e59d26153 (diff)
parent6699329d3f91c5b9d8e8e55ad88de24bd3894955 (diff)
downloadiced-5e018965ee99c44fe50f9be8f7b69cd486d183be.tar.gz
iced-5e018965ee99c44fe50f9be8f7b69cd486d183be.tar.bz2
iced-5e018965ee99c44fe50f9be8f7b69cd486d183be.zip
Merge branch 'master' into feature/custom-styling
Diffstat (limited to 'examples/stopwatch.rs')
-rw-r--r--examples/stopwatch.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/stopwatch.rs b/examples/stopwatch.rs
index 9b69f7ca..c9a61ee9 100644
--- a/examples/stopwatch.rs
+++ b/examples/stopwatch.rs
@@ -95,7 +95,6 @@ impl Application for Stopwatch {
seconds % MINUTE,
self.duration.subsec_millis() / 10,
))
- .width(Length::Shrink)
.size(40);
let button = |state, label, style| {
@@ -123,13 +122,11 @@ impl Application for Stopwatch {
.on_press(Message::Reset);
let controls = Row::new()
- .width(Length::Shrink)
.spacing(20)
.push(toggle_button)
.push(reset_button);
let content = Column::new()
- .width(Length::Shrink)
.align_items(Align::Center)
.spacing(20)
.push(duration)