Loosen Limits for children of row::Wrapping

This commit is contained in:
Héctor Ramón Jiménez 2025-08-22 05:29:49 +02:00
parent 49a300ab38
commit d5521f4230
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -417,6 +417,7 @@ where
.height(self.row.height)
.shrink(self.row.padding);
let child_limits = limits.loose();
let spacing = self.row.spacing;
let vertical_spacing = self.vertical_spacing.unwrap_or(spacing);
let max_width = limits.max().width;
@ -453,7 +454,7 @@ where
let node = child.as_widget_mut().layout(
&mut tree.children[i],
renderer,
&limits,
&child_limits,
);
let child_size = node.size();