We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c9eba commit 767f3b5Copy full SHA for 767f3b5
Microsoft.Toolkit.Uwp.UI.Controls.Primitives/WrapPanel/WrapPanel.cs
@@ -209,12 +209,12 @@ private Size UpdateRows(Size availableSize)
209
var finalMeasure = new UvMeasure(Orientation, width: 0.0, height: 0.0);
210
void Arrange(UIElement child, bool isLast = false)
211
{
212
- var desiredMeasure = new UvMeasure(Orientation, child.DesiredSize);
213
- if (desiredMeasure.U == 0)
+ if (child.Visibility == Visibility.Collapsed)
214
215
return; // if an item is collapsed, avoid adding the spacing
216
}
217
+ var desiredMeasure = new UvMeasure(Orientation, child.DesiredSize);
218
if ((desiredMeasure.U + position.U + paddingEnd.U) > parentMeasure.U)
219
220
// next row!
0 commit comments