You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by pol2095 <po...@free.fr> on 2017/12/08 23:35:32 UTC
Scroll to the bottom of a spark.components.TextArea when a new line
is added programmatically
Hello,
when I use "ta.scrollToRange(ta.text.length, ta.text.length)" in a
spark.components.TextArea on desktop, the scroller doesn't scroll to the
bottom correctly when a new line is added programmatically, how to fix it ?
my code :
- Main.mxml <https://paste.ofcode.org/37e7qRkCscBBnwSsqiGiaSU>
Thanks
--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Re: Scroll to the bottom of a spark.components.TextArea when a new
line is added programmatically
Posted by pol2095 <po...@free.fr>.
i find a workaround
Main.mxml <https://paste.ofcode.org/AJgBKbJxLJgRr5G2CAQdXU>
--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Re: Scroll to the bottom of a spark.components.TextArea when a new
line is added programmatically
Posted by Alex Harui <ah...@adobe.com.INVALID>.
Try CallLater to run that code.
On 12/8/17, 3:35 PM, "pol2095" <po...@free.fr> wrote:
>Hello,
>
>when I use "ta.scrollToRange(ta.text.length, ta.text.length)" in a
>spark.components.TextArea on desktop, the scroller doesn't scroll to the
>bottom correctly when a new line is added programmatically, how to fix it
>?
>
>my code :
>- Main.mxml
><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.of
>code.org%2F37e7qRkCscBBnwSsqiGiaSU&data=02%7C01%7Caharui%40adobe.com%7C341
>32e5740774d8afe6408d53e946196%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7
>C636483729370773035&sdata=ruewGRTIfAgacNvZyeyWrMDUl6KBbrMpRXK0W2uF4u8%3D&r
>eserved=0>
>
>Thanks
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C34132
>e5740774d8afe6408d53e946196%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36483729370773035&sdata=RoElckZTAOv%2B6ATqujSX7J6PiwtdIiSxYTrcFM59xXs%3D&r
>eserved=0