Hi skar,
try
this.input_field.setTextSelection(0,0)
skar schrieb:
Hi,
I want to set the blinking cursor to the top of the textarea when it is
initialized with some data. My code is:
this.input_field.focus();
this.input_field.setValue(result);
this.input_field.getContentElement().scrollToY(0);
The text area scrolls to the top of the text but the blinking cursor is
somewhere below and I have to press up arrow to get it to the visible
part of the text area.
cheers,
skar.
--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel