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
This commit is contained in:
Václav Slavík
2012-04-30 09:33:21 +00:00
parent 1b29603d20
commit f0630187ea

View File

@@ -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));