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| {
|
|limits| {
|
||||||
let child_limits = layout::Limits::new(
|
let child_limits = layout::Limits::new(
|
||||||
Size::new(limits.min().width, limits.min().height),
|
limits.min(),
|
||||||
Size::new(
|
Size::new(
|
||||||
if self.direction.horizontal().is_some() {
|
if self.direction.horizontal().is_some() {
|
||||||
f32::INFINITY
|
f32::INFINITY
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue