From 3b656728ddadefa1c8ffd168695cb8818b8486ef Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 29 Aug 2004 10:07:39 +0000 Subject: [PATCH] repositioning of mac textctrl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectlg.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 3d35e8dfa0..2065d971d1 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -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)); -- 2.47.2