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:
@@ -4718,6 +4718,8 @@ unsigned int wxDataViewCtrl::GetBestColumnWidth(int idx) const
|
|||||||
GetModel(), column->GetModelColumn(),
|
GetModel(), column->GetModelColumn(),
|
||||||
m_clientArea->GetRowHeight());
|
m_clientArea->GetRowHeight());
|
||||||
|
|
||||||
|
calculator.UpdateWithWidth(column->GetMinWidth());
|
||||||
|
|
||||||
if ( m_headerArea )
|
if ( m_headerArea )
|
||||||
calculator.UpdateWithWidth(m_headerArea->GetColumnTitleWidth(*column));
|
calculator.UpdateWithWidth(m_headerArea->GetColumnTitleWidth(*column));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user