Skip to content

Commit

Permalink
Merge pull request #1092 from orrindeng/pr
Browse files Browse the repository at this point in the history
Fix on some computers, the gallery layout is not good
  • Loading branch information
batzen authored Dec 28, 2022
2 parents 3f9477b + 5014eda commit 7c9344c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fluent.Ribbon/Controls/UniformGridWithItemSize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected override Size ArrangeOverride(Size arrangeSize)
{
childBounds.X += xStep;

if (childBounds.X >= xBound)
if (DoubleUtil.GreaterThan(childBounds.X, xBound) || DoubleUtil.AreClose(childBounds.X, xBound))
{
childBounds.Y += childBounds.Height;
childBounds.X = 0;
Expand Down

0 comments on commit 7c9344c

Please sign in to comment.