diff options
author | 2020-03-14 23:25:19 +0100 | |
---|---|---|
committer | 2020-03-14 23:25:19 +0100 | |
commit | e1438774af809c2951c4c7446638500446c81111 (patch) | |
tree | f087f73812c9090324d10d4b44330d529383e962 /native/src | |
parent | f1168187c917f84130e97be81e2ccd4181fe9539 (diff) | |
download | iced-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.rs | 4 |
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( |