better variant support, fixes #11114
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
eb1d8888a1
commit
71da935dd2
@ -1509,6 +1509,12 @@ void wxWidgetCocoaImpl::SetControlSize( wxWindowVariant variant )
|
|||||||
}
|
}
|
||||||
if ( [m_osxView respondsToSelector:@selector(setControlSize:)] )
|
if ( [m_osxView respondsToSelector:@selector(setControlSize:)] )
|
||||||
[m_osxView setControlSize:size];
|
[m_osxView setControlSize:size];
|
||||||
|
else if ([m_osxView respondsToSelector:@selector(cell)])
|
||||||
|
{
|
||||||
|
id cell = [(id)m_osxView cell];
|
||||||
|
if ([cell respondsToSelector:@selector(setControlSize:)])
|
||||||
|
[cell setControlSize:size];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWidgetCocoaImpl::SetFont(wxFont const& font, wxColour const&, long, bool)
|
void wxWidgetCocoaImpl::SetFont(wxFont const& font, wxColour const&, long, bool)
|
||||||
|
Loading…
Reference in New Issue
Block a user