jhonny thio wrote:
> Only this._TextArea.getElement().firstChild.scrollTop = 200; ?
> it also doesn't work. You can see my code below :
>
> reqOpen.addEventListener("completed", function(e)
>         {
>             var isi = this._TextArea.getValue();
>             isi = isi + "\n" +mySentence+"\n"+ e.getData().getContent();
>             this._TextArea.setValue(isi);   
>             this._TextArea.getElement().firstChild.scrollTop = 200;
>         }, this);
>
> If have filled my textarea with a large mount of text, but it doesn't 
> scroll to bottom.
> Any other command ?
Look, it probably doesn't help just to try arbitrary commands, does it?! 
Have you experimented? Tried offsets other than 200, e.g. 10,000?! I'd 
suggest to do try this way

this._TextArea.getElement().firstChild.scrollTop = 
this._TextArea.getElement().firstChild.scrollHeight;

but I strongly recommend doing a bit of reading about these attributes 
and methods. Try things out in Firebug!

Thomas


>
>
>
> ----- Original Message ----
> From: Jonathan Rass <[EMAIL PROTECTED]>
> To: qooxdoo Development <[email protected]>
> Sent: Wednesday, July 16, 2008 8:40:58 AM
> Subject: Re: [qooxdoo-devel] Memo autoscroll and chat application
>
> Hi Jhonny!
>
>
> The problem is that the "scrollTop" property is applied on the 
> widget's div element. At the moment we have no getter or setter for 
> the "scrollTop" or "scrollLeft" property of htmlarea elements.
> As workaround you can set the value on the htmlarea directly (here for 
> qooxdoo 0.7.x):
>
> this._TextArea.getElement().firstChild.scrollTop = 200;
>
>
> Cheers,
> Jonathan
>
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]> on behalf of 
> jhonny thio
> Sent: Wed 7/16/2008 4:24 PM
> To: qooxdoo Development
> Subject: Re: [qooxdoo-devel] Memo autoscroll and chat application
>
> I have tried : 
> this._TextArea.setScrollTop(this._TextArea.getScrollHeight()); in 
> every I update my textarea.
>
> this is my code :
>
> reqOpen.addEventListener("completed", function(e)
>         {
>             var isi = this._TextArea.getValue();
>             isi = isi + "\n" +mySentence+"\n"+ e.getData().getContent();
>             this._TextArea.setValue(isi);   
>             this._TextArea.setScrollTop(this._TextArea.getScrollHeight());
>         }, this);
>
> it doesn't work. any other step ?
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to