Author: everaldo
Date: 2006-12-11 17:17:16 -0500 (Mon, 11 Dec 2006)
New Revision: 69367

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

        * ToolBarButton.cs: Fix text positon. 



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-12-11 21:31:30 UTC (rev 69366)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-12-11 22:17:16 UTC (rev 69367)
@@ -1,3 +1,7 @@
+2006-12-11  Everaldo Canuto  <[EMAIL PROTECTED]>
+
+       * ToolBarButton.cs: Fix text positon. 
+
 2006-12-11  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * Application.cs (OpenForms): Add.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs 
2006-12-11 21:31:30 UTC (rev 69366)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs 
2006-12-11 22:17:16 UTC (rev 69367)
@@ -330,10 +330,10 @@
                        
                        if (Parent.TextAlign == ToolBarTextAlign.Underneath) {
                                new_image_rect = new Rectangle 
((bounds.Size.Width - image_size.Width) / 2 - grip, 0, image_size.Width + 2 + 
grip, image_size.Height + 2 * grip);
-                               new_text_rect = new Rectangle (0, 
new_image_rect.Height, bounds.Size.Width, bounds.Size.Height - 
new_image_rect.Height);
+                               new_text_rect = new Rectangle (0, 
new_image_rect.Height, bounds.Size.Width, bounds.Size.Height - 
new_image_rect.Height - 2 * grip);
                        } else {
                                new_image_rect = new Rectangle (0, 0, 
image_size.Width + 2 * grip, image_size.Height + 2 * grip);
-                               new_text_rect = new Rectangle 
(new_image_rect.Width, 0, bounds.Size.Width - new_image_rect.Width, 
bounds.Size.Height);
+                               new_text_rect = new Rectangle 
(new_image_rect.Width, 0, bounds.Size.Width - new_image_rect.Width, 
bounds.Size.Height - 2 * grip);
                        }
 
                        bool changed = false;

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

Reply via email to