adapting textctrl position to window theme
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user