fix issue with scrolling into view on focus

fixes #1983