From e7a2ee9d80537750843cc8a8f8de06dc23e465c3 Mon Sep 17 00:00:00 2001 From: Fabrizio Iannetti Date: Sat, 20 Jan 2024 10:59:21 +0100 Subject: [PATCH] adapt to latest iced (Widget.size()) Widget combined height() and width() into a single size() function Signed-off-by: Fabrizio Iannetti --- src/ui/calendar.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ui/calendar.rs b/src/ui/calendar.rs index 32ea0c5..050e0f2 100644 --- a/src/ui/calendar.rs +++ b/src/ui/calendar.rs @@ -591,12 +591,8 @@ impl Widget for CalendarView<'_> where Renderer: text::Renderer, { - fn width(&self) -> Length { - Length::Shrink - } - - fn height(&self) -> Length { - Length::Shrink + fn size(&self) -> Size { + Size { width: Length::Fill, height: Length::Fill } } fn layout(&self, _tree: &mut Tree, _renderer: &Renderer, limits: &layout::Limits) -> layout::Node {