View Full Version : field focus: different behaviour IE vs FF.

26 Nov 2010, 3:02 PM
Hi there,

I have new issue :">

The thing is: there is TextField and some function adding value to it and setting focus back. in FF it goes at the end of the line and user can continue typing (which is OK), but in IE it goes to the start, which is bad. Is there any standard way to put focus into one position (at the end of the line)?

Thanks in advance,

27 Nov 2010, 7:04 AM
You could configure the textfield with selectOnFocus:true, but that's not exactly what you're looking for.

The Ext library doesn't contain caret positioning code, so you will have to do it yourself.

28 Nov 2010, 6:07 AM
ok, I'll do it by my own. but it sounds like feature request, isn't? :">

28 Nov 2010, 7:19 AM
It's already a feature request (http://www.sencha.com/forum/showthread.php?78424-Ext.Element-should-standardize-Selection-range).