summaryrefslogtreecommitdiffstats
path: root/examples/styling
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-14 23:25:19 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-14 23:25:19 +0100
commite1438774af809c2951c4c7446638500446c81111 (patch)
treef087f73812c9090324d10d4b44330d529383e962 /examples/styling
parentf1168187c917f84130e97be81e2ccd4181fe9539 (diff)
downloadiced-e1438774af809c2951c4c7446638500446c81111.tar.gz
iced-e1438774af809c2951c4c7446638500446c81111.tar.bz2
iced-e1438774af809c2951c4c7446638500446c81111.zip
Fix `Scrollable` width consistency
Diffstat (limited to 'examples/styling')
-rw-r--r--examples/styling/src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs
index 47408624..d6f41b04 100644
--- a/examples/styling/src/main.rs
+++ b/examples/styling/src/main.rs
@@ -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!"))