summaryrefslogtreecommitdiffstats
path: root/examples/clock/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-01-17 21:46:17 +0700
committerLibravatar GitHub <noreply@github.com>2022-01-17 21:46:17 +0700
commit92a699b97dacd4c40316b67e20b6a3a777a1de64 (patch)
tree06ab57aaf4dada3a5b7cef6f331a22c47183ac5e /examples/clock/src
parentb7bc169120d3447ead238e974007027a5152d341 (diff)
parent5ce8653fb51c035e0a6fe1ba7ab363018cdf107b (diff)
downloadiced-92a699b97dacd4c40316b67e20b6a3a777a1de64.tar.gz
iced-92a699b97dacd4c40316b67e20b6a3a777a1de64.tar.bz2
iced-92a699b97dacd4c40316b67e20b6a3a777a1de64.zip
Merge pull request #1198 from iced-rs/subscription-helpers
`websocket` example and helpers to create custom subscriptions
Diffstat (limited to 'examples/clock/src')
-rw-r--r--examples/clock/src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs
index de9e879a..325ccc1a 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -66,16 +66,12 @@ impl Application for Clock {
}
fn view(&mut self) -> Element<Message> {
- let canvas = Canvas::new(self)
- .width(Length::Units(400))
- .height(Length::Units(400));
+ let canvas = Canvas::new(self).width(Length::Fill).height(Length::Fill);
Container::new(canvas)
.width(Length::Fill)
.height(Length::Fill)
.padding(20)
- .center_x()
- .center_y()
.into()
}
}