Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 authored and Arlodotexe committed Mar 22, 2024
1 parent 1eb0400 commit bf06874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Segmented/src/EqualPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected override Size ArrangeOverride(Size finalSize)
// Check if there's more (little) width available - if so, set max item width to the maximum possible as we have an almost perfect height.
if (finalSize.Width > _visibleItemsCount * _maxItemWidth + (Spacing * (_visibleItemsCount - 1)))
{
maxItemWidth = (finalSize.Width - (Spacing * (visibleItemsCount - 1))) / visibleItemsCount;
_maxItemWidth = (finalSize.Width - (Spacing * (_visibleItemsCount - 1))) / _visibleItemsCount;
}

var elements = Children.Where(static e => e.Visibility == Visibility.Visible);
Expand Down

0 comments on commit bf06874

Please sign in to comment.