Author: toshok
Date: 2006-10-20 18:09:25 -0400 (Fri, 20 Oct 2006)
New Revision: 66852
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
Log:
2006-10-20 Chris Toshok <[EMAIL PROTECTED]>
* PropertyGridView.cs: the dropdown should be MIN(number of items
in list, 15). Fixes #79551.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-20 22:08:05 UTC (rev 66851)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-20 22:09:25 UTC (rev 66852)
@@ -1,3 +1,8 @@
+2006-10-20 Chris Toshok <[EMAIL PROTECTED]>
+
+ * PropertyGridView.cs: the dropdown should be MIN(number of items
+ in list, 15). Fixes #79551.
+
2006-10-20 Andreia Gaita <[EMAIL PROTECTED]>
Fixes #79384, #79394, #79652, #79667
* Application.cs:
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2006-10-20 22:08:05 UTC (rev 66851)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2006-10-20 22:09:25 UTC (rev 66852)
@@ -668,6 +668,7 @@
selected_index = i;
i++;
}
+ listBox.Height = row_height * Math.Min
(listBox.Items.Count, 15);
listBox.SelectedIndex = selected_index;
listBox.KeyDown += new
KeyEventHandler(listBox_KeyDown);
listBox.MouseUp+=new
MouseEventHandler(listBox_MouseUp);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches