From 13499080f059a1163f91ecc108f3751f0b26bb6b Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 18 Dec 2008 16:38:23 +0000 Subject: [PATCH] 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 --- src/generic/datavgen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 254507c2e6..4465439568 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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 ) {