[MWF] Don't allow Height become less than MinimumHeight
authorEberhard Beilharz <eb1@sil.org>
Wed, 12 Mar 2014 15:37:17 +0000 (16:37 +0100)
committerEberhard Beilharz <eb1@sil.org>
Wed, 12 Mar 2014 15:45:44 +0000 (16:45 +0100)
In RowHeightInfoNeededEventArgs we need to check that the new
Height value isn't larger than the current MinimumHeight.

mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridViewRowHeightInfoNeededEventArgs.cs

index 0bd0384e4cda3dcca418ee339a45b63bfa03c1b2..5dc5a9b086a8be9c41c0188fa5a5101699c7b7da 100644 (file)
@@ -39,7 +39,7 @@ namespace System.Windows.Forms {
 
                public int Height {
                        get { return height; }
-                       set { height = value; }
+                       set { height = value < minimumHeight ? minimumHeight : value; }
                }
 
                public int MinimumHeight {