Fix incorrect cursor position in TextEditor
Fix incorrect cursor position in TextEditor

This commit fixes a bug in TextEditor where the cursor position is
outside of the entered text when the text property is set with a
smaller string. The cursor is now reset to (0, 0) when the text
property is set.

aarmea/mumei,aarmea/mumei,aarmea/mumei