thron7 wrote:
> 
> [...]
>> my solution, without using a qx.ui.form.TextArea.[set|get]Scroll[...],
>> is:
>>
>> var t = new qx.ui.embed.HtmlEmbed("<textarea id='db_001'></textarea>");
>> somewidget.add(t);
>> var v = document.getElementById('db_001');
>> and in a callback just I do:
>> v.scrollTop = v.scrollHeight;
>>
>> it's working perfectly with <textarea> ale also with <div> and should
>> with
>> any other scrollable elements.
>>   
> 
> Right, but this is the exact same thing as using
> 
> this._TextArea.getElement().firstChild.scrollTop = 
> this._TextArea.getElement().firstChild.scrollHeight;
> 
> You're working on the DOM element directly (either through
> document.getElementById() or _TextArea.getElement()) and setting scrollTop
> to scrollHeight. I would prefer the latter form since it saves you from
> the effort of going through an HtmlEmbed.
> 
> T.
> 
> 

right!
thank you for instruction: I was trying in that way, but without
".firstChild" property.
but... is it that property in API document?
the qx.dom.Element is deprecated in 0.7.3 API and has not any property
called ".firstChild"...

b.r.
dominik

-- 
View this message in context: 
http://www.nabble.com/Memo-autoscroll-and-chat-application-tp18467866p18505261.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


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