You can scroll the textarea with a simple call to the plugin.
There's no exposed method to get the bottom position, by the plugin
will limit your number if it's higher than the maximum.
You can either put a large number, or calculate the right value
yourself using the DOM properties of the textarea.

I will make a mental note reminding myself to expose this function on
the next release.

Cheers

--
Ariel Flesler
http://flesler.blogspot.com/

On 16 jul, 14:06, rolfsf <[EMAIL PROTECTED]> wrote:
> If one has a textarea or editable div with overflow: auto, and one
> starts typing and filling the div, due to focus on the cursor the
> scroll will keep the newly added lines in view. But if one is adding
> the content dynamically, the newly added lines will appear out of view
> - there's no cursor to focus on.
>
> Question - can the scrollTo plugin be used to automatically keep the
> last line of text in view? Is there a simple way to do this?
>
> Thanks!

Reply via email to