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:
parent
75a019db80
commit
e7a2ee9d80
|
@ -591,12 +591,8 @@ impl<Message, Renderer> Widget<Message, Renderer> for CalendarView<'_>
|
|||
where
|
||||
Renderer: text::Renderer,
|
||||
{
|
||||
fn width(&self) -> Length {
|
||||
Length::Shrink
|
||||
}
|
||||
|
||||
fn height(&self) -> Length {
|
||||
Length::Shrink
|
||||
fn size(&self) -> Size<Length> {
|
||||
Size { width: Length::Fill, height: Length::Fill }
|
||||
}
|
||||
|
||||
fn layout(&self, _tree: &mut Tree, _renderer: &Renderer, limits: &layout::Limits) -> layout::Node {
|
||||
|
|
Loading…
Reference in New Issue