fix #2173 AutoScrollEditorIntoView doesn't work for search