From 68bb67c009beb850cb5e59ea222071b051f112d4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 13 Dec 2018 23:46:25 +0100 Subject: [PATCH] Revert "Prevent the user from resizing the last wxDataViewCtrl column" This reverts commit 24054c95d8313cc41cb215f34352fc4d206473d1 as it actually should be possible to increase the size of the last column, even if this shows the horizontal scroll bar. --- include/wx/generic/dataview.h | 2 -- src/generic/datavgen.cpp | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/include/wx/generic/dataview.h b/include/wx/generic/dataview.h index 2ee210ceac..815dfcb75b 100644 --- a/include/wx/generic/dataview.h +++ b/include/wx/generic/dataview.h @@ -107,8 +107,6 @@ public: return m_flags; } - virtual bool IsResizeable() const wxOVERRIDE; - virtual bool IsSortKey() const wxOVERRIDE { return m_sort; diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 5df51937e1..c5aad72db8 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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 //-----------------------------------------------------------------------------