Skip to content

Commit

Permalink
Update StaggeredLayout.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Poker-sang authored Nov 28, 2024
1 parent c5dc5b1 commit b8090d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected override Size MeasureOverride(VirtualizingLayoutContext context, Size
{
// 0.0001 is to prevent floating point errors
var tempAvailableWidth = availableWidth + ColumnSpacing - 0.0001;
numColumns = (int)Math.Floor(tempAvailableWidth / (DesiredColumnWidth + ColumnSpacing)));
numColumns = (int)Math.Floor(tempAvailableWidth / (DesiredColumnWidth + ColumnSpacing));
columnWidth = tempAvailableWidth / numColumns - ColumnSpacing;
}
}
Expand Down

0 comments on commit b8090d5

Please sign in to comment.