Hi
if you add "textField.setTextSelection(4,4);" to your example it seems to work
for qooxdoo 1.4 (Checked with your example, tested with FireFox V22 on Windows
7)
Here's the code again:
---------------------------------------------------------------------------
// Create a button
var textField = new qx.ui.form.TextField("Test");
textField.setTextAlign('right');
// Document is the application root
var doc = this.getRoot();
// Add button to document at fixed coordinates
doc.add(textField);
textField.setTextSelection(4, 4); // <= some more work to be done here
---------------------------------------------------------------------------
You have to calculate the text selection positions (the '4's) by yourself of
course ;)
Hope it helps,
Peter
On 7/25/2013 11:26 AM Tim van Oijen wrote:
> Hi,
>
>
>
> In Qooxdoo 1.4 we have an issue that in a textfield with right-textalignment
> the caret is not shown when it is put after the last character. In 3.0, this
> bug seems to be fixed. A customer wants this to be fixed soon for their
> version
> and upgrading to Qx 3.0 is not an option at this moment. How can I find out
> what has been fixed to solve this issue? I searched but couldn’t find an
> answer.
>
>
>
> Thanks in advance,
>
> Tim
>
>
>
> P.S.
>
> You can watch the erroneous behavior in qooxdoo playground with the following
> script. Change 1.4 into ‘current’ to see the fixed behaviour:
>
>
>
> http://demo.qooxdoo.org/1.4/playground/#%7B%22code%22%3A%20%22%252F%252F%2520Create%2520a%2520button%250Avar%2520textField%2520%253D%2520new%2520qx.ui.form.TextField(%2522Test%2522)%253B%250AtextField.setTextAlign('right')%253B%250A%250A%252F%252F%2520Document%2520is%2520the%2520application%2520root%250Avar%2520doc%2520%253D%2520this.getRoot()%253B%250A%250A%252F%252F%2520Add%2520button%2520to%2520document%2520at%2520fixed%2520coordinates%250Adoc.add(textField)%253B%250A%22%7D
>
--
***********************************************
Achtung, wir sind umgezogen!
Unsere neue Adresse:
TIS GmbH
Müller-Armack-Str. 8
46397 Bocholt
***********************************************
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel