Skip to content

Commit 482d348

Browse files
13r0ckhecrj
authored andcommitted
Use Limits::min directly in scrollable::layout
1 parent 8578a13 commit 482d348

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

widget/src/scrollable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ where
438438
},
439439
|limits| {
440440
let child_limits = layout::Limits::new(
441-
Size::new(limits.min().width, limits.min().height),
441+
limits.min(),
442442
Size::new(
443443
if self.direction.horizontal().is_some() {
444444
f32::INFINITY

0 commit comments

Comments
 (0)