X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b656728ddadefa1c8ffd168695cb8818b8486ef..e11898f903183f897a2b2a50a4447ea73ba7273f:/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 ; }