Fix adjusting the scroll when the soft keyboard shows.

Fix 381
Fix 388
Fix 420