Browse Source

Merge pull request #242 from clbr/master

When tabbing to a new element, make sure it is visible
David Wimsey 10 years ago
parent
commit
f0e9b08112
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/Core/ElementDocument.cpp

+ 1 - 0
Source/Core/ElementDocument.cpp

@@ -492,6 +492,7 @@ bool ElementDocument::SearchFocusSubtree(Element* element, bool forward)
 	if (element->GetProperty<int>(TAB_INDEX) == TAB_INDEX_AUTO)
 	{
 		element->Focus();
+		element->ScrollIntoView(false);
 		return true;
 	}