]> git.saurik.com Git - wxWidgets.git/commitdiff
add bigger margins around column title when autosizing column width based on it,...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Dec 2008 19:20:15 +0000 (19:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Dec 2008 19:20:15 +0000 (19:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/headerctrlcmn.cpp

index 62a03eafc9505e44f45ae454ed72f3f12d001af8..03e2c35cdd07ee51c075ec79c33fd5e4c6136e46 100644 (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();