Ensure that current column is visible in generic wxDataViewCtrl.
When navigating between columns using keyboard, ensure visibility of the newly selected column. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3775,6 +3775,8 @@ bool wxDataViewMainWindow::TryAdvanceCurrentColumn(wxDataViewTreeNode *node, boo
|
|||||||
if ( idx >= (int)GetOwner()->GetColumnCount() )
|
if ( idx >= (int)GetOwner()->GetColumnCount() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
GetOwner()->EnsureVisible(m_currentRow, idx);
|
||||||
|
|
||||||
if ( idx < 1 )
|
if ( idx < 1 )
|
||||||
{
|
{
|
||||||
// We are going to the left of the second column. Reset to whole-row
|
// We are going to the left of the second column. Reset to whole-row
|
||||||
|
Reference in New Issue
Block a user