From 6a482814474fa7761bca76932a703fea4c5346a6 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sun, 26 Apr 2015 15:02:56 +0400 Subject: [PATCH] Improve appearance of wxBitmapComboBox under OS X. The bitmap that appears next to the edit field is being cropped vertically after a certain bitmap height. Increase the vertical spacing reserved for the bitmap under OS X to fix the cropping. --- src/generic/bmpcboxg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/generic/bmpcboxg.cpp b/src/generic/bmpcboxg.cpp index 4c48db8922..332e6ca4d3 100644 --- a/src/generic/bmpcboxg.cpp +++ b/src/generic/bmpcboxg.cpp @@ -41,7 +41,12 @@ #endif -#define IMAGE_SPACING_CTRL_VERTICAL 7 // Spacing used in control size calculation +// Spacing used in control size calculation +#ifdef __WXOSX__ + #define IMAGE_SPACING_CTRL_VERTICAL 12 +#else + #define IMAGE_SPACING_CTRL_VERTICAL 7 +#endif // ============================================================================