Merge pull request #3004 from 13r0ck/scrollable-nit
Use `Limits::min` directly in `scrollable::layout`
This commit is contained in:
commit
9ef2c46883
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