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:
parent
673453e26a
commit
13499080f0
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user