- wxCoord wText = width - POPUPWIDTH - MARGIN;
-#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);
+ wxCoord wText = width - m_choice->GetPopupWidth() - MARGIN;
+ m_text->SetSize(TEXTFOCUSBORDER, TEXTFOCUSBORDER, wText, -1 );
+ // put it at an inset of 1 to have outer area shadows drawn as well
+ m_choice->SetSize(TEXTFOCUSBORDER + wText + MARGIN - 1 , TEXTFOCUSBORDER, m_choice->GetPopupWidth() , -1);