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
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue