2010-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Sat, 15 May 2010 08:38:08 +0000 (08:38 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Sat, 15 May 2010 08:38:08 +0000 (08:38 -0000)
* TabControl.cs: ItemSize should be returning two times the padding
values instead of one.

svn path=/trunk/mcs/; revision=157381

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs

index 273406e215b92aabdff9fe60fc2c0c2beedb14e6..c004b720ee722b5432b435525d6fd8e6d921a8ae 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * TabControl.cs: ItemSize should be returning two times the padding
+       values instead of one.
+
 2010-05-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
 
        * TabControl.cs: ItemSize should include the padding value.
index 6104e7bb1835ee5c0dec5fa3e6d23e8fefe4575d..9c4a029b186bf1ccf12d1d980b8b8f7b03afe629 100644 (file)
@@ -233,8 +233,8 @@ namespace System.Windows.Forms {
                        get {
                                Size size = item_size;
                                if (SizeMode != TabSizeMode.Fixed) {
-                                       size.Width += padding.X;
-                                       size.Height += padding.Y;
+                                       size.Width += padding.X * 2;
+                                       size.Height += padding.Y * 2;
                                }
 
                                return size;