X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b656728ddadefa1c8ffd168695cb8818b8486ef..3246bafdcf3a7ce19b62313cf4209e395195e835:/src/generic/treectlg.cpp diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 2065d971d1..b733643760 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -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 ; }