Skip to content

Commit

Permalink
fix: fixed #996
Browse files Browse the repository at this point in the history
  • Loading branch information
NaBian committed Dec 3, 2021
1 parent 55e35e6 commit 0836390
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Shared/HandyControl_Shared/Controls/Panel/Grid/Row.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Linq;
using System;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using HandyControl.Data;
Expand Down Expand Up @@ -67,6 +68,8 @@ protected override Size ArrangeOverride(Size finalSize)
var totalCellCount = 0;
var gutterHalf = Gutter / 2;
var itemWidth = (finalSize.Width - _totalAutoWidth + Gutter) / ColLayout.ColMaxCellCount;
itemWidth = Math.Max(0, itemWidth);

var childBounds = new Rect(-gutterHalf, -gutterHalf, 0, _maxChildDesiredHeight);
_layoutStatus = ColLayout.GetLayoutStatus(finalSize.Width);

Expand Down

0 comments on commit 0836390

Please sign in to comment.