summaryrefslogtreecommitdiffstats
path: root/examples/stopwatch.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-01-09 01:51:53 +0100
committerLibravatar GitHub <noreply@github.com>2020-01-09 01:51:53 +0100
commit6699329d3f91c5b9d8e8e55ad88de24bd3894955 (patch)
treec41ab304ffaf2dc2311c7d33916cd0515114ad31 /examples/stopwatch.rs
parentcc529a1803972604b122c19c0104e71532fff993 (diff)
parenta4e833e860c41796d491ab43e84239fcca1f303d (diff)
downloadiced-6699329d3f91c5b9d8e8e55ad88de24bd3894955.tar.gz
iced-6699329d3f91c5b9d8e8e55ad88de24bd3894955.tar.bz2
iced-6699329d3f91c5b9d8e8e55ad88de24bd3894955.zip
Merge pull request #139 from hecrj/feature/shrink-by-default
Make `Row`, `Column`, `Text`, and `Checkbox` shrink by default
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 7a7f0793..f4d485e2 100644
--- a/examples/stopwatch.rs
+++ b/examples/stopwatch.rs
@@ -96,7 +96,6 @@ impl Application for Stopwatch {
seconds % MINUTE,
self.duration.subsec_millis() / 10,
))
- .width(Length::Shrink)
.size(40);
let button = |state, label, color: [f32; 3]| {
@@ -125,13 +124,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)