Skip to content

Commit 4f44fa8

Browse files
committed
Make sure the row MinHeight is respected
1 parent 0a32668 commit 4f44fa8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/GridSplitter/GridSplitter.Events.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ private bool VerticalMove(double verticalChange)
194194
// if sibling row has fixed width then resize it
195195
else if (!IsStarRow(SiblingRow))
196196
{
197+
// Would adding to this column make the current column violate the MinWidth?
198+
if (IsValidRowHeight(CurrentRow, verticalChange) == false)
199+
{
200+
return false;
201+
}
197202
if (!SetRowHeight(SiblingRow, verticalChange * -1, GridUnitType.Pixel))
198203
{
199204
return true;

0 commit comments

Comments
 (0)