summaryrefslogtreecommitdiffstats
path: root/native/src
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 /native/src
parentf1168187c917f84130e97be81e2ccd4181fe9539 (diff)
downloadiced-e1438774af809c2951c4c7446638500446c81111.tar.gz
iced-e1438774af809c2951c4c7446638500446c81111.tar.bz2
iced-e1438774af809c2951c4c7446638500446c81111.zip
Fix `Scrollable` width consistency
Diffstat (limited to 'native/src')
-rw-r--r--native/src/widget/scrollable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs
index e83f25af..ec9746d4 100644
--- a/native/src/widget/scrollable.rs
+++ b/native/src/widget/scrollable.rs
@@ -118,7 +118,7 @@ where
Renderer: 'static + self::Renderer + column::Renderer,
{
fn width(&self) -> Length {
- Length::Fill
+ Widget::<Message, Renderer>::width(&self.content)
}
fn height(&self) -> Length {
@@ -132,7 +132,7 @@ where
) -> layout::Node {
let limits = limits
.max_height(self.max_height)
- .width(Length::Fill)
+ .width(Widget::<Message, Renderer>::width(&self.content))
.height(self.height);
let child_limits = layout::Limits::new(