Author: jordi
Date: 2005-09-28 08:25:16 -0400 (Wed, 28 Sep 2005)
New Revision: 50938
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
Log:
2005-09-28 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
* ListBox.cs: Fixes bug 76253
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-09-28 10:59:14 UTC (rev 50937)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-09-28 12:25:16 UTC (rev 50938)
@@ -1,3 +1,7 @@
+2005-09-28 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
+
+ * ListBox.cs: Fixes bug 76253
+
2005-09-28 Kornél Pál <[EMAIL PROTECTED]>
* ImageList.cs: Added comments about the current implementation. Added
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
2005-09-28 10:59:14 UTC (rev 50937)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
2005-09-28 12:25:16 UTC (rev 50938)
@@ -1614,7 +1614,11 @@
item_rect.X =
ThemeEngine.Current.DrawComboListBoxDecorationRight (owner.DropDownStyle);
item_rect.Width = textarea_drawable.Width;
- item_rect.Y = 2 + ((height - 2) * (index -
first_displayble));
+ item_rect.Y = ((height - 2) * (index -
first_displayble));
+
+ if (owner.dropdown_style ==
ComboBoxStyle.Simple)
+ item_rect.Y += 2;
+
item_rect.Height = height;
return item_rect;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches