repositioning of mac textctrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-08-29 10:07:39 +00:00
parent 7ebf5540cc
commit 3b656728dd

View File

@@ -375,6 +375,15 @@ wxTreeTextCtrl::wxTreeTextCtrl(wxGenericTreeCtrl *owner,
// FIXME: what are all these hardcoded 4, 8 and 11s really?
x += image_w;
w -= image_w + 4;
#ifdef __WXMAC__
// edit control height
if ( h > 22 - 8 )
{
int diff = h - ( 22 - 8 ) ;
h -= diff ;
y += diff / 2 ;
}
#endif
(void)Create(m_owner, wxID_ANY, m_startValue,
wxPoint(x - 4, y - 4), wxSize(w + 11, h + 8));