Browse Source

Fixed bug in Grid.

Bug came from Moonlight. Fixes #3.
pull/10/head
Steven Kirk 12 years ago
parent
commit
338e82c43d
  1. 4
      Perspex.Controls/Grid.cs

4
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);
}
}

Loading…
Cancel
Save