Fix problem with infinite loop while resizing the text area on load.
Merge pull request #519 from weaksauce/viModeInfiniteLoopFix

Fix problem with infinite loop while resizing the text area on load.