]> git.saurik.com Git - wxWidgets.git/commitdiff
Ensure that current column is visible in generic wxDataViewCtrl.
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 14 Dec 2011 15:53:25 +0000 (15:53 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 14 Dec 2011 15:53:25 +0000 (15:53 +0000)
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

src/generic/datavgen.cpp

index 8b1b0007786bac841afc221adebc44b27e81dc87..ee37a902266d930aa1d1eea0e8cfece37a612e0b 100644 (file)
@@ -3775,6 +3775,8 @@ bool wxDataViewMainWindow::TryAdvanceCurrentColumn(wxDataViewTreeNode *node, boo
     if ( idx >= (int)GetOwner()->GetColumnCount() )
         return false;
 
+    GetOwner()->EnsureVisible(m_currentRow, idx);
+
     if ( idx < 1 )
     {
         // We are going to the left of the second column. Reset to whole-row