update focus rectangle width when the columns are being added/removed on the fly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4167,6 +4167,9 @@ void wxListMainWindow::DeleteColumn( int col )
|
|||||||
|
|
||||||
m_dirty = TRUE;
|
m_dirty = TRUE;
|
||||||
m_columns.DeleteNode( node );
|
m_columns.DeleteNode( node );
|
||||||
|
|
||||||
|
// invalidate it as it has to be recalculated
|
||||||
|
m_headerWidth = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxListMainWindow::DoDeleteAllItems()
|
void wxListMainWindow::DoDeleteAllItems()
|
||||||
@@ -4361,6 +4364,9 @@ void wxListMainWindow::InsertColumn( long col, wxListItem &item )
|
|||||||
{
|
{
|
||||||
m_columns.Append( column );
|
m_columns.Append( column );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// invalidate it as it has to be recalculated
|
||||||
|
m_headerWidth = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user