summaryrefslogtreecommitdiffstats
path: root/examples/stopwatch.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-30 20:54:04 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-30 21:00:27 +0100
commit2ff0e48142c302cb93130164d083589bb2ac4979 (patch)
tree0abdf5892d999c0e98b42849c74cab8a619fbb5e /examples/stopwatch.rs
parent74d01a69577065ce4152fc80b297e8816ab3deff (diff)
downloadiced-2ff0e48142c302cb93130164d083589bb2ac4979.tar.gz
iced-2ff0e48142c302cb93130164d083589bb2ac4979.tar.bz2
iced-2ff0e48142c302cb93130164d083589bb2ac4979.zip
Make `Row`, `Column`, 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)