From f458d4dd6b69c4a9e94ef956673ae8e463677a27 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 11 Dec 2008 19:20:15 +0000 Subject: [PATCH] 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 --- src/common/headerctrlcmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/headerctrlcmn.cpp b/src/common/headerctrlcmn.cpp index 62a03eafc9..03e2c35cdd 100644 --- a/src/common/headerctrlcmn.cpp +++ b/src/common/headerctrlcmn.cpp @@ -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();