Author: mkestner
Date: 2006-01-17 12:49:31 -0500 (Tue, 17 Jan 2006)
New Revision: 55687
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
2006-01-17 Mike Kestner <[EMAIL PROTECTED]>
* MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
* ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
invisible/previously-visible items.
[Fixes #76909]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-17 17:43:12 UTC (rev 55686)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-17 17:49:31 UTC (rev 55687)
@@ -1,3 +1,10 @@
+2006-01-17 Mike Kestner <[EMAIL PROTECTED]>
+
+ * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
+ * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
+ invisible/previously-visible items.
+ [Fixes #76909]
+
2006-01-17 Alexander Olk <[EMAIL PROTECTED]>
* ThemeClearlooks.cs:
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs
2006-01-17 17:43:12 UTC (rev 55686)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs
2006-01-17 17:49:31 UTC (rev 55687)
@@ -120,6 +120,7 @@
if (form == null)
return;
+ Height = 0;
Draw ();
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-01-17 17:43:12 UTC (rev 55686)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-01-17 17:49:31 UTC (rev 55687)
@@ -1766,8 +1766,11 @@
item.X = x;
item.Y = y;
- if (item.Visible == false)
+ if (item.Visible == false) {
+ item.Width = 0;
+ item.Height = 0;
return;
+ }
if (item.Separator == true) {
item.Height = SEPARATOR_HEIGHT / 2;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches