prevent the input box from getting out of view.

though maybe change the scrolling thing later. don't scroll when we have
scrolled ourselves?
don't disrupt scrolling around in the history.