]> git.saurik.com Git - wxWidgets.git/commitdiff
repositioning of mac textctrl
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 29 Aug 2004 10:07:39 +0000 (10:07 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 29 Aug 2004 10:07:39 +0000 (10:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 3d35e8dfa0981e0e74e59f7a05880725d5a6380b..2065d971d1f9fc4e8cf0e4ce80e92001e48a5dcc 100644 (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));