Recalculate display (and scrollbars etc) before calling EnsureVisible()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2008-12-18 16:38:23 +00:00
parent 673453e26a
commit 13499080f0

View File

@ -3658,6 +3658,8 @@ void wxDataViewCtrl::EnsureVisible( int row, int column )
void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, const wxDataViewColumn * column )
{
m_clientArea->RecalculateDisplay();
int row = m_clientArea->GetRowByItem(item);
if( row >= 0 )
{