adapt to latest iced (Widget.size())

Widget combined height() and width() into a single size()
function

Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
This commit is contained in:
Fabrizio Iannetti 2024-01-20 10:59:21 +01:00
parent 75a019db80
commit e7a2ee9d80
1 changed files with 2 additions and 6 deletions

View File

@ -591,12 +591,8 @@ impl<Message, Renderer> Widget<Message, Renderer> for CalendarView<'_>
where where
Renderer: text::Renderer, Renderer: text::Renderer,
{ {
fn width(&self) -> Length { fn size(&self) -> Size<Length> {
Length::Shrink Size { width: Length::Fill, height: Length::Fill }
}
fn height(&self) -> Length {
Length::Shrink
} }
fn layout(&self, _tree: &mut Tree, _renderer: &Renderer, limits: &layout::Limits) -> layout::Node { fn layout(&self, _tree: &mut Tree, _renderer: &Renderer, limits: &layout::Limits) -> layout::Node {