update height of the header window whenever it changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4602,8 +4602,8 @@ void wxGenericListCtrl::CalculateAndSetHeaderHeight()
|
||||
m_headerWin->GetTextExtent(wxT("Hg"), &w, &h, &d);
|
||||
h += d + 2 * HEADER_OFFSET_Y + EXTRA_HEIGHT;
|
||||
|
||||
// only update if there is not enough space
|
||||
if ( h > m_headerHeight )
|
||||
// only update if changed
|
||||
if ( h != m_headerHeight )
|
||||
{
|
||||
m_headerHeight = h;
|
||||
|
||||
|
Reference in New Issue
Block a user