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 cf29259 commit 63c9ebaCopy full SHA for 63c9eba
Microsoft.Toolkit.Uwp.UI.Controls.Primitives/WrapPanel/WrapPanel.cs
@@ -166,6 +166,13 @@ protected override Size ArrangeOverride(Size finalSize)
166
foreach (var rect in row.ChildrenRects)
167
{
168
var child = Children[childIndex++];
169
+ while (child.Visibility == Visibility.Collapsed)
170
+ {
171
+ // Collapsed children are not added into the rows,
172
+ // we skip them.
173
+ child = Children[childIndex++];
174
+ }
175
+
176
var arrangeRect = new UvRect
177
178
Position = rect.Position,
0 commit comments