summaryrefslogtreecommitdiffstats
path: root/examples/toast
diff options
context:
space:
mode:
Diffstat (limited to 'examples/toast')
-rw-r--r--examples/toast/src/main.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs
index 711d8223..300343b9 100644
--- a/examples/toast/src/main.rs
+++ b/examples/toast/src/main.rs
@@ -313,12 +313,8 @@ mod toast {
}
impl<'a, Message> Widget<Message, Renderer> for Manager<'a, Message> {
- fn width(&self) -> Length {
- self.content.as_widget().width()
- }
-
- fn height(&self) -> Length {
- self.content.as_widget().height()
+ fn size(&self) -> Size<Length> {
+ self.content.as_widget().size()
}
fn layout(