git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57244
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
// the vertical size is rather arbitrary but it looks better if we leave
// some space around the text
{
// 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);
}
: GetColEnd(GetColumnCount() - 1),
(7*GetCharHeight())/4);
}