Scroll on resize

main application of this: opening the keyboard on mobile devices
Merge pull request #328 from glowing-bear/scroll-on-resize

Scroll on resize if at the bottom of the bufferlines