} else {\r
Rectangle str_rect = interior;\r
\r
+ if (is_selected) {\r
+ // Reduce the interior size to match the inner size of non-selected tabs\r
+ str_rect.X += selectedTabDelta.X;\r
+ str_rect.Y += selectedTabDelta.Y;\r
+ str_rect.Width -= selectedTabDelta.Width;\r
+ str_rect.Height -= selectedTabDelta.Height;\r
+\r
+ str_rect.Y -= selectedTabDelta.Y; // Move up the text / image of the selected tab\r
+ }\r
+\r
if (tab.ImageList != null && page.ImageIndex >= 0 && page.ImageIndex < tab.ImageList.Images.Count) {\r
int image_x;\r
if (tab.SizeMode != TabSizeMode.Fixed) {\r