add bigger margins around column title when autosizing column width based on it, it looks better like this

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-12-11 19:20:15 +00:00
parent 4db4c0173b
commit f458d4dd6b

View File

@ -80,7 +80,7 @@ void wxHeaderCtrlBase::OnSeparatorDClick(wxHeaderCtrlEvent& event)
const unsigned col = event.GetColumn();
int w = wxWindowBase::GetTextExtent(GetColumn(col).GetTitle()).x;
w += 2*GetCharWidth(); // add some arbitrary margins around text
w += 4*GetCharWidth(); // add some arbitrary margins around text
if ( !UpdateColumnWidthToFit(col, w) )
event.Skip();