Skip to content

Commit 116e369

Browse files
committed
Update
1 parent c61b706 commit 116e369

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Files.App.Controls/BreadcrumbBar/BreadcrumbBarItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected override void OnApplyTemplate()
5858
_chevronButton.PointerExited += ChevronButton_PointerExited;
5959

6060
_chevronDropDownMenuFlyout.Opening += ChevronDropDownMenuFlyout_Opening;
61-
_chevronDropDownMenuFlyout.Opened += ChevronDropDownMenuFlyout_Opened; ;
61+
_chevronDropDownMenuFlyout.Opened += ChevronDropDownMenuFlyout_Opened;
6262
_chevronDropDownMenuFlyout.Closed += ChevronDropDownMenuFlyout_Closed;
6363
}
6464

src/Files.App.Controls/BreadcrumbBar/BreadcrumbBarLayout.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public partial class BreadcrumbBarLayout : NonVirtualizingLayout
2020
private double _spacing = 0d;
2121

2222
private bool _ellipsisIsRendered;
23-
private uint _firstRenderedItemIndexAfterEllipsis;
24-
private uint _visibleItemsCount;
23+
private int _indexAfterEllipsis;
24+
private int _visibleItemsCount;
2525

2626
public BreadcrumbBarLayout(BreadcrumbBar breadcrumb, double spacing)
2727
{
@@ -32,6 +32,7 @@ public BreadcrumbBarLayout(BreadcrumbBar breadcrumb, double spacing)
3232
protected override Size MeasureOverride(NonVirtualizingLayoutContext context, Size availableSize)
3333
{
3434
var accumulatedSize = new Size(0, 0);
35+
_availableSize = availableSize;
3536

3637
// Go through all items and measure them
3738
foreach (var item in context.Children)
@@ -58,6 +59,8 @@ protected override Size ArrangeOverride(NonVirtualizingLayoutContext context, Si
5859
{
5960
double accumulatedWidths = 0d;
6061

62+
_indexAfterEllipsis = context.Children.Count - 1;
63+
6164
// Go through all items and arrange them
6265
foreach (var item in context.Children)
6366
{

0 commit comments

Comments
 (0)