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
4 changes: 2 additions & 2 deletions components/Segmented/src/EqualPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ protected override Size ArrangeOverride(Size finalSize)
{
double x = 0;

// Check if there's more width available - if so, recalculate (e.g. whenever Grid.Column is set to Auto)
// 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)))
{
MeasureOverride(finalSize);
_maxItemWidth = (finalSize.Width - (Spacing * (_visibleItemsCount - 1))) / _visibleItemsCount;
}

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