Implement wxCOL_WIDTH_AUTOSIZE on OS X.
Only Cocoa build on 10.5+ is supported. Before that, NSOutlineView didn't have reasonable support for determining cell sizes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2746,6 +2746,16 @@ void wxDataViewColumn::SetWidth(int width)
|
||||
{
|
||||
wxDataViewCtrl* dataViewCtrlPtr(GetOwner());
|
||||
|
||||
switch ( width )
|
||||
{
|
||||
case wxCOL_WIDTH_AUTOSIZE:
|
||||
// not implemented, fall through
|
||||
case wxCOL_WIDTH_DEFAULT:
|
||||
width = wxDVC_DEFAULT_WIDTH;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if ((width >= m_minWidth) && (width <= m_maxWidth))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user