Revert "Autosize the right columns in macOS wxDataViewCtrl"
This reverts commit 36ea7ff4d6
.
This commit is contained in:
@@ -2377,7 +2377,7 @@ void wxCocoaDataViewControl::FitColumnWidthToContent(unsigned int pos)
|
||||
|
||||
if ( pos == noOfColumns - 1 )
|
||||
[m_OutlineView sizeLastColumnToFit];
|
||||
else if ( GetColumn(pos)->GetWidthVariable() == wxCOL_WIDTH_AUTOSIZE )
|
||||
else
|
||||
[column setWidth:calculator.GetMaxWidth() + m_expanderWidth];
|
||||
|
||||
if ( !(GetDataViewCtrl()->GetWindowStyle() & wxDV_VARIABLE_LINE_HEIGHT) )
|
||||
|
@@ -302,6 +302,9 @@ void wxOSXDataViewModelNotifier::AdjustAutosizedColumns()
|
||||
unsigned count = m_DataViewCtrlPtr->GetColumnCount();
|
||||
for ( unsigned col = 0; col < count; col++ )
|
||||
{
|
||||
wxDataViewColumn *column = m_DataViewCtrlPtr->GetColumnPtr(col);
|
||||
|
||||
if ( column->GetWidthVariable() == wxCOL_WIDTH_AUTOSIZE )
|
||||
m_DataViewCtrlPtr->GetDataViewPeer()->FitColumnWidthToContent(col);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user