Просмотр исходного кода

* ThemeWin32Classic.cs: Do not draw the selected tab if its not in
the clip area.

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

Jackson Harper 21 лет назад
Родитель
Сommit
dfd26760fe

+ 5 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,8 @@
+2004-11-10  Jackson Harper  <[email protected]>
+
+	* ThemeWin32Classic.cs: Do not draw the selected tab if its not in
+	the clip area.
+	
 2004-11-10  Jackson Harper  <[email protected]>
 
 	* ThemeWin32Classic.cs: Don't bother drawing tabs outside of the

+ 1 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs

@@ -664,7 +664,7 @@ namespace System.Windows.Forms {
 				if (width < MinimumTabWidth)
 					width = MinimumTabWidth;
 				if (page.Row != prev_row)
-                                        xpos = 4 + size;
+                                        xpos = 4 + (slider_pos * size);
 
 				page.TabBounds = new Rectangle (xpos,
 						ypos + (row_count - page.Row) * (item_size.Height + spacing.Height),