]> git.saurik.com Git - wxWidgets.git/commitdiff
adapting textctrl position to window theme
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 30 Aug 2004 07:07:26 +0000 (07:07 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 30 Aug 2004 07:07:26 +0000 (07:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 2065d971d1f9fc4e8cf0e4ce80e92001e48a5dcc..b733643760a81c3fcac5f3891b7a6a1063b02dfb 100644 (file)
@@ -376,10 +376,11 @@ wxTreeTextCtrl::wxTreeTextCtrl(wxGenericTreeCtrl *owner,
     x += image_w;
     w -= image_w + 4;
 #ifdef __WXMAC__
+    wxSize bs = DoGetBestSize() ;
     // edit control height
-    if ( h > 22 - 8 )
+    if ( h > bs.y - 8 )
     {
-        int diff = h - ( 22 - 8 ) ;
+        int diff = h - ( bs.y - 8 ) ;
         h -= diff ;
         y += diff / 2 ;
     }