Fix the tab height so the labels don't clip, and restore the offset
authorMike Hearn <mike@theoretic.com>
Mon, 17 Mar 2003 04:43:26 +0000 (04:43 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 17 Mar 2003 04:43:26 +0000 (04:43 +0000)
constant to what it was before.

dlls/comctl32/tab.c

index 9113510a0b893a88869eb44cefdc4a1764dffe31..e24ca258d0585ab60e25bf8035d559e4bd28cd85 100644 (file)
@@ -79,7 +79,7 @@ typedef struct
 /******************************************************************************
  * Positioning constants
  */
-#define SELECTED_TAB_OFFSET     1
+#define SELECTED_TAB_OFFSET     2
 #define HORIZONTAL_ITEM_PADDING 6
 #define VERTICAL_ITEM_PADDING   3
 #define ROUND_CORNER_SIZE       2
@@ -1099,7 +1099,7 @@ static void TAB_SetItemBounds (HWND hwnd)
 
     /* Take the highest between font or icon */
     if (fontMetrics.tmHeight > icon_height)
-      item_height = fontMetrics.tmHeight;
+      item_height = fontMetrics.tmHeight + 2;
     else
       item_height = icon_height;