Author: toshok
Date: 2006-11-09 15:37:36 -0500 (Thu, 09 Nov 2006)
New Revision: 67638
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
Log:
* TabControl.cs: initialize row_count to 0, and set it to 1 when
we need to (if we have any tab pages). Fixes unit test.
2006-11-09 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-09 20:25:36 UTC (rev 67637)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-09 20:37:36 UTC (rev 67638)
@@ -1,5 +1,10 @@
2006-11-09 Chris Toshok <[EMAIL PROTECTED]>
+ * TabControl.cs: initialize row_count to 0, and set it to 1 when
+ we need to (if we have any tab pages). Fixes unit test.
+
+2006-11-09 Chris Toshok <[EMAIL PROTECTED]>
+
* Label.cs (CalcPreferredWidth): if Text == "", our preferred
width is 0, not 3. Fixes a unit test.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
2006-11-09 20:25:36 UTC (rev 67637)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
2006-11-09 20:37:36 UTC (rev 67638)
@@ -44,7 +44,7 @@
private ImageList image_list;
private Size item_size = Size.Empty;
private Point padding;
- private int row_count = 1;
+ private int row_count = 0;
private bool hottrack;
private TabPageCollection tab_pages;
private bool show_tool_tips;
@@ -696,7 +696,8 @@
int xpos = 4;
Size spacing = TabSpacing;
- row_count = 1;
+ if (TabPages.Count > 0)
+ row_count = 1;
show_slider = false;
for (int i = 0; i < TabPages.Count; i++) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches