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:
@@ -3658,6 +3658,8 @@ void wxDataViewCtrl::EnsureVisible( int row, int column )
|
|||||||
|
|
||||||
void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, const wxDataViewColumn * column )
|
void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, const wxDataViewColumn * column )
|
||||||
{
|
{
|
||||||
|
m_clientArea->RecalculateDisplay();
|
||||||
|
|
||||||
int row = m_clientArea->GetRowByItem(item);
|
int row = m_clientArea->GetRowByItem(item);
|
||||||
if( row >= 0 )
|
if( row >= 0 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user