Fixed a layout error

This commit is contained in:
Eduardo Flores 2022-10-08 04:52:43 -07:00 committed by Michael Murphy
parent 5c859fa1df
commit 06af4ec608

View file

@ -69,8 +69,7 @@ where
) )
.scrollbar_width(6) .scrollbar_width(6)
.scroller_width(6) .scroller_width(6)
) ).into(),
.into(),
..Default::default() ..Default::default()
} }
} }
@ -149,7 +148,7 @@ where
Self { Self {
spacing: 12, spacing: 12,
padding: Padding::new(12), padding: Padding::new(12),
width: Length::Fill, width: Length::Shrink,
height: Length::Fill, height: Length::Fill,
max_width: 300, max_width: 300,
max_height: u32::MAX, max_height: u32::MAX,
@ -159,9 +158,7 @@ where
style: Default::default(), style: Default::default(),
condensed: false, condensed: false,
active: true, active: true,
content: Container::new(row![ content: Container::new(row![Column::new()]).into(),
Column::new()
]).into(),
} }
} }
} }
@ -215,7 +212,7 @@ where
if self.active { if self.active {
self.content.as_widget().layout(renderer, limits) self.content.as_widget().layout(renderer, limits)
} else { } else {
let content: Element<Message, Renderer> = Container::new(row![]).into(); let content: Element<Message, Renderer> = Container::new(row![Column::new()]).into();
content.as_widget().layout(renderer, limits) content.as_widget().layout(renderer, limits)
} }
}, },