Browse Source

When tabbing to a new element, make sure it is visible

Lauri Kasanen 11 years ago
parent
commit
0a483dbe33
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;
 	}