From: Václav Slavík Date: Mon, 30 Apr 2012 09:33:21 +0000 (+0000) Subject: Respect minimal width in wxDataViewCtrl::GetBestColumnWidth(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f0630187eace810df2176bbb7f5429297ca82d4e?ds=inline Respect minimal width in wxDataViewCtrl::GetBestColumnWidth(). See #14167. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 2eb606f6f1..7c58d590b9 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -4718,6 +4718,8 @@ unsigned int wxDataViewCtrl::GetBestColumnWidth(int idx) const GetModel(), column->GetModelColumn(), m_clientArea->GetRowHeight()); + calculator.UpdateWithWidth(column->GetMinWidth()); + if ( m_headerArea ) calculator.UpdateWithWidth(m_headerArea->GetColumnTitleWidth(*column));