Use Limits::min directly in scrollable::layout

This commit is contained in:
Brock Szuszczewicz 2025-06-26 14:48:56 -06:00 committed by Héctor Ramón Jiménez
parent 8578a1362b
commit 482d348230
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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