Revert "Prevent the user from resizing the last wxDataViewCtrl column"
This reverts commit 24054c95d8
as it
actually should be possible to increase the size of the last column,
even if this shows the horizontal scroll bar.
This commit is contained in:
@@ -256,17 +256,6 @@ void wxDataViewColumn::SetSortOrder(bool ascending)
|
||||
m_owner->OnColumnChange(idx);
|
||||
}
|
||||
|
||||
bool wxDataViewColumn::IsResizeable() const
|
||||
{
|
||||
// The last column in generic wxDataViewCtrl is never resizeable by the
|
||||
// user because it's always automatically expanded to consume all the
|
||||
// available space, so prevent the user from resizing it.
|
||||
if ( this == GetOwner()->GetColumn(GetOwner()->GetColumnCount() - 1) )
|
||||
return false;
|
||||
|
||||
return wxDataViewColumnBase::IsResizeable();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxDataViewHeaderWindow
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user