Skip to content

Commit

Permalink
Fixed bug in Grid.
Browse files Browse the repository at this point in the history
Bug came from Moonlight. Fixes #3.
  • Loading branch information
Steven Kirk committed Dec 4, 2014
1 parent 669989e commit 338e82c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Perspex.Controls/Grid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ private void ExpandStarCols(Size availableSize)
}
else
{
width = Math.Max(availableSize.Width - this.colMatrix[i, i].OfferedSize, 0);
width = Math.Max(width - this.colMatrix[i, i].OfferedSize, 0);
}
}

Expand Down Expand Up @@ -572,7 +572,7 @@ private void ExpandStarRows(Size availableSize)
}
else
{
height = Math.Max(availableSize.Height - this.rowMatrix[i, i].OfferedSize, 0);
height = Math.Max(height - this.rowMatrix[i, i].OfferedSize, 0);
}
}

Expand Down

0 comments on commit 338e82c

Please sign in to comment.