Author: everaldo
Date: 2007-05-11 02:10:12 -0400 (Fri, 11 May 2007)
New Revision: 77196

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs
Log:
2007-05-10  Everaldo Canuto  <[EMAIL PROTECTED]>

        * ToolBarButton.cs: When change style call ToolBar.Redraw to update
        toolbar size info because different styles theres different sizes.
        Fixes #81522.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-11 05:59:02 UTC (rev 77195)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-11 06:10:12 UTC (rev 77196)
@@ -1,3 +1,9 @@
+2007-05-10  Everaldo Canuto  <[EMAIL PROTECTED]>
+
+       * ToolBarButton.cs: When change style call ToolBar.Redraw to update
+       toolbar size info because different styles theres different sizes.
+       Fixes #81522.
+
 2007-05-10  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
        * ThemeWinClassic.cs: For .Net 2.0 don't draw any image

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs 
2007-05-11 05:59:02 UTC (rev 77195)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs 
2007-05-11 06:10:12 UTC (rev 77196)
@@ -186,7 +186,9 @@
                                        return;
 
                                style = value;
-                               Invalidate ();
+                               
+                               if (parent != null)
+                                       parent.Redraw (true);
                        }
                }
 

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

Reply via email to