Don't scroll to bottom on resize

Don't scroll to bottom unexpectedly.

Fixes #821