Fix Scrollable width consistency

This commit is contained in:
Héctor Ramón Jiménez 2020-03-14 23:25:19 +01:00
parent f1168187c9
commit e1438774af
2 changed files with 3 additions and 2 deletions

View file

@ -93,6 +93,7 @@ impl Sandbox for Styling {
ProgressBar::new(0.0..=100.0, self.slider_value).style(self.theme);
let scrollable = Scrollable::new(&mut self.scroll)
.width(Length::Fill)
.height(Length::Units(100))
.style(self.theme)
.push(Text::new("Scroll me!"))