diff options
author | 2023-04-12 23:40:36 +0200 | |
---|---|---|
committer | 2023-04-12 23:40:36 +0200 | |
commit | 66939b22b0ee7e1dc0e5ef31594fae5810ffa7b2 (patch) | |
tree | b40731ca1e8f93a7c748bf0766c5d28800ad87f7 /native | |
parent | 046f3596ca88c1ad4c2941f2f74007684920e5d5 (diff) | |
download | iced-66939b22b0ee7e1dc0e5ef31594fae5810ffa7b2.tar.gz iced-66939b22b0ee7e1dc0e5ef31594fae5810ffa7b2.tar.bz2 iced-66939b22b0ee7e1dc0e5ef31594fae5810ffa7b2.zip |
Remove `max_width` and `max_height` calls in `scrollable::layout`
Diffstat (limited to '')
-rw-r--r-- | native/src/widget/scrollable.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs index 45cd2a0e..8e8138cd 100644 --- a/native/src/widget/scrollable.rs +++ b/native/src/widget/scrollable.rs @@ -405,15 +405,7 @@ pub fn layout<Renderer>( horizontal_enabled: bool, layout_content: impl FnOnce(&Renderer, &layout::Limits) -> layout::Node, ) -> layout::Node { - let limits = limits - .max_height(f32::INFINITY) - .max_width(if horizontal_enabled { - f32::INFINITY - } else { - limits.max().width - }) - .width(width) - .height(height); + let limits = limits.width(width).height(height); let child_limits = layout::Limits::new( Size::new(limits.min().width, 0.0), |