Author: jpobst
Date: 2007-10-08 17:59:46 -0400 (Mon, 08 Oct 2007)
New Revision: 87133

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs
Log:
2007-10-08  Jonathan Pobst  <[EMAIL PROTECTED]>

        * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
        to recalculate its size.  Fixes a part of bug #331052.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-08 21:06:19 UTC (rev 87132)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-08 21:59:46 UTC (rev 87133)
@@ -1,5 +1,10 @@
 2007-10-08  Jonathan Pobst  <[EMAIL PROTECTED]>
 
+       * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
+       to recalculate its size.  Fixes a part of bug #331052.
+
+2007-10-08  Jonathan Pobst  <[EMAIL PROTECTED]>
+
        * NotifyIcon.cs: Set the correct mouse button when handling right mouse
        button.  Fixes a part of bug #331052.
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs 
2007-10-08 21:06:19 UTC (rev 87132)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs 
2007-10-08 21:59:46 UTC (rev 87133)
@@ -687,6 +687,8 @@
                        set {
                                if (show_week_numbers != value) {
                                        show_week_numbers = value;
+                                       // The values here don't matter, 
SetBoundsCore will calculate its own
+                                       SetBoundsCore (Left, Top, Width, 
Height, BoundsSpecified.Width);
                                        this.Invalidate ();
                                }
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to