Hi, I could also reproduce the IE bug where the cursor appears at the start of the field, opened a report for it: http://bugzilla.qooxdoo.org/show_bug.cgi?id=3519
Add yourself to CC if you want to keep track of it. Not sure what could cause the other issue. Could you try adding a listener for the "changeEnabled" event on the text field and calling focus() in the callback function? Regards, Daniel danovics schrieb: > I have a few textfields in my app (inputField[] derived from the qx's > textField). > They are disabled as default. > There is an editButton in the app. > When it is executed the inputField[] become enable and the second field gets > the focus: inputField[1].focus(); > > I've realised that this process works differently in FF vs IE7 vs IE8. > > In FF and Safari (MacOSX) everything works fine. After hitting the Edit > button the fields become enabled and the cursor appears in the end of the > inputField[1]'s character chain. > > In IE7 after the focus() method the cursor doesn't appear in the first > textField. > Into my inputField's constructor I've put two listeners: one is for > "focusin" and the another for "focusout". Both of them drop a debug message > to the logwindow. > Thanks to them I can see that the inputField[1] gets the focus when it has > to get it and there isn't a focusout event on it. > I can hit tab key and shift+tab which will change the focus to the next and > to the previous inputFields (inputField[2] and inputField[0]), so it > obviously shows that the focus is on the inputField[1]. ) > After all the cursor still isn't visible inside the inputField[0]. And if > instead of tabbing I hit a letter-button there won't be a change in the > inputField[1]! > > ? Could anybody tell me in what circumstances can happend that a textField > gets the focus but the cursor doesn't show up inside it ? > > In IE8 after the focus() method the cursor appears in the first field before > the first character. > But if I cancel the editing (it is possible in my application with another > button and results the inputField[] turn again disabled), and after that hit > the editButton again the cursor appears in the correct pleace, at the and of > the textField's content. > > In the playground I tried to reconstruct this problem by adding a new button > to the textField demo, but I could only achieve the IE8 "bug". > > Any help would be appreciated. > Thanks > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
