diff --git a/Perspex.Controls/Grid.cs b/Perspex.Controls/Grid.cs index 7b42284758..789c4e06c7 100644 --- a/Perspex.Controls/Grid.cs +++ b/Perspex.Controls/Grid.cs @@ -537,7 +537,7 @@ namespace Perspex.Controls } else { - width = Math.Max(availableSize.Width - this.colMatrix[i, i].OfferedSize, 0); + width = Math.Max(width - this.colMatrix[i, i].OfferedSize, 0); } } @@ -572,7 +572,7 @@ namespace Perspex.Controls } else { - height = Math.Max(availableSize.Height - this.rowMatrix[i, i].OfferedSize, 0); + height = Math.Max(height - this.rowMatrix[i, i].OfferedSize, 0); } }