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] 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 ?

<<winmail.dat>>

-------------------------------------------------------------------------
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