Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Files.App.Controls/BreadcrumbBar/BreadcrumbBarLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ private int GetFirstIndexToRender(NonVirtualizingLayoutContext context)
var itemCount = context.Children.Count;
var accumulatedWidth = 0d;

// Handle zero or negative available width - hide all items
if (_availableSize.Width <= 0)
return itemCount;

// Go through all items from the last item
for (int index = itemCount - 1; index >= 0; index--)
{
Expand All @@ -111,4 +115,4 @@ private int GetFirstIndexToRender(NonVirtualizingLayoutContext context)
return 0;
}
}
}
}
Loading