Use Limits::min directly in scrollable::layout
This commit is contained in:
parent
8578a1362b
commit
482d348230
1 changed files with 1 additions and 1 deletions
|
|
@ -438,7 +438,7 @@ where
|
|||
},
|
||||
|limits| {
|
||||
let child_limits = layout::Limits::new(
|
||||
Size::new(limits.min().width, limits.min().height),
|
||||
limits.min(),
|
||||
Size::new(
|
||||
if self.direction.horizontal().is_some() {
|
||||
f32::INFINITY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue