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 1d81df8 commit 1e67aa4Copy full SHA for 1e67aa4
src/Files.App.Controls/BreadcrumbBar/BreadcrumbBarLayout.cs
@@ -98,6 +98,10 @@ private int GetFirstIndexToRender(NonVirtualizingLayoutContext context)
98
var itemCount = context.Children.Count;
99
var accumulatedWidth = 0d;
100
101
+ // Handle zero or negative available width - hide all items
102
+ if (_availableSize.Width <= 0)
103
+ return itemCount;
104
+
105
// Go through all items from the last item
106
for (int index = itemCount - 1; index >= 0; index--)
107
{
@@ -111,4 +115,4 @@ private int GetFirstIndexToRender(NonVirtualizingLayoutContext context)
111
115
return 0;
112
116
}
113
117
114
-}
118
+}
0 commit comments