How do you programmatically move the caret of a Flex TextArea to the end?

前端 未结 6 1288
眼角桃花
眼角桃花 2021-01-12 15:25

I\'m trying to move the caret in a Flex TextArea to the end after appending some text from my code. I\'ve looked through the reference documentation for TextArea and its und

6条回答
  •  渐次进展
    2021-01-12 16:11

    Simply add the following code after adding a text to the TextArea:

    textArea.verticalScrollPosition = textArea.maxVerticalScrollPosition;
    

提交回复
热议问题