]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use MSW-only DEFAULT_ITEM_WIDTH but the width returned by the best class GetBes...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Dec 2008 10:50:59 +0000 (10:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Dec 2008 10:50:59 +0000 (10:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/headerctrlg.cpp

index e7e4333c5f8abd049cb0ae4b48bd6fb4b7be84a9..85548d7b974beaed3404105daeda20bcbdd9b8f3 100644 (file)
@@ -154,7 +154,7 @@ wxSize wxHeaderCtrl::DoGetBestSize() const
 {
     // the vertical size is rather arbitrary but it looks better if we leave
     // some space around the text
-    return wxSize(IsEmpty() ? DEFAULT_ITEM_WIDTH
+    return wxSize(IsEmpty() ? wxHeaderCtrlBase::DoGetBestSize().x
                             : GetColEnd(GetColumnCount() - 1),
                   (7*GetCharHeight())/4);
 }