Fixing movement of cursor and the text during resize
Merge pull request #4 from Runnable/fixing-cursor-and-resizing

Fixing movement of cursor and the text during resize