Author: mkestner
Date: 2006-10-20 11:10:18 -0400 (Fri, 20 Oct 2006)
New Revision: 66829
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
Log:
2006-10-20 Mike Kestner <[EMAIL PROTECTED]>
* ListBox.cs : don't update the VScrollbar if the list is empty,
just hide it. [Fixes #79692]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-20 10:27:23 UTC (rev 66828)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-20 15:10:18 UTC (rev 66829)
@@ -1,3 +1,8 @@
+2006-10-20 Mike Kestner <[EMAIL PROTECTED]>
+
+ * ListBox.cs : don't update the VScrollbar if the list is empty,
+ just hide it. [Fixes #79692]
+
2006-10-20 Jackson Harper <[EMAIL PROTECTED]>
* RichTextBox.cs: Handle some special chars better, and don't skip
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
2006-10-20 10:27:23 UTC (rev 66828)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
2006-10-20 15:10:18 UTC (rev 66829)
@@ -1846,7 +1846,7 @@
/* Determines if the vertical scrollbar has to be displyed */
private bool UpdateVerticalScrollBar ()
{
- if (MultiColumn) {
+ if (MultiColumn || Items.Count == 0) {
vscrollbar.Visible = false;
return false;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches