Skip to content

Commit

Permalink
Fix: StaggeredLayout division bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Poker-sang authored and michael-hawker committed Dec 3, 2024
1 parent 4fc769e commit c756dd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected override Size MeasureOverride(VirtualizingLayoutContext context, Size
if (ItemsStretch is StaggeredLayoutItemsStretch.None)
{
columnWidth = double.IsNaN(DesiredColumnWidth) ? availableWidth : Math.Min(DesiredColumnWidth, availableWidth);
numColumns = Math.Max(1, (int)Math.Floor(availableWidth / state.ColumnWidth));
numColumns = Math.Max(1, (int)Math.Floor(availableWidth / columnWidth));
}
else
{
Expand Down

0 comments on commit c756dd5

Please sign in to comment.