I need some advice how to autoscroll to the bottom of textarea. I have a div tag with style overflow:scroll and heightpx. That div is filled with text dynamically and soon text is at the bottom of the area. I have tried to use:. That works fine only with small texts, but then scrolling just leaves behind. What is the right way to auto scroll text in div tag?
java - Automatically scroll to the bottom of a text area - Stack Overflow
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. When the text changes, I want it to set the flickable to the bottom of the text, so that we see the most recently added lines. When the onTextChanged event is fired. No issues there, I checked the numbers and it's fine scrolling manually to the number shown with console. But it seems the component the flickable , just after I change contentY, changes it alone back to 0 this behavior happens only after the text height becomes bigger than the fixed height of the flickable. It's so genuinely idiotic I question whether it's a bug or intended.
Move Cursor To End of Textarea or Input
It still doesn't seem to be working. Here's what I've got so far. Note that after the object has been created it's setVisible method is called from outside the class ie. Log In. Sign Up.