- m_text->SetSize(0, 0, wText, height);
- m_choice->SetSize(0 + wText + MARGIN, 0, POPUPWIDTH, -1);
+#if TARGET_API_MAC_OSX
+ // also, we need to shrink the size of the wxTextCtrl a bit
+ // to make it appear properly on OS X.
+ height -= 8;
+ wText -= 8;
+#endif
+ m_text->SetSize(origin, origin, wText, height);
+ m_choice->SetSize(origin + wText + MARGIN, 0, POPUPWIDTH, -1);