fixed: first reposition, then autofocus

to prevent document scrolling on focus() call