Navigation Menu

Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Typing value of name goes to begining #4032

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Closed

Typing value of name goes to begining #4032

openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments

Comments

@openstreetmap-trac
Copy link

Reporter: maxolasersquad
[Submitted to the original trac issue database at 12.04am, Sunday, 2nd October 2011]

When updating the value of a name key, after the first letter is entered the cursor goes to the beginning of field.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 8.02am, Sunday, 2nd October 2011]

What software exactly are you typing this into? Potlatch? JOSM?

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 9.48am, Sunday, 2nd October 2011]

I assume, given you raised #4031 at the same time, that this is about Potlatch 2.

@openstreetmap-trac
Copy link
Author

Author: Richard
[Added to the original trac issue at 1.17am, Monday, 3rd October 2011]

Adobe have changed a lot of the TextInput architecture in Flex 4.5 and unfortunately it no longer works reliably with our AutoComplete component. I've spent a while trying to fix it but it looks non-trivial. Essentially the problem is that line 212 here (http://git.openstreetmap.org/potlatch2.git/blob/HEAD:/net/systemeD/controls/AutoComplete.as) isn't setting the insertion point location as it ought to (and used to).

We could consider moving to another AutoComplete component: http://flashcommander.org/blog/flex-4-autocomplete, http://www.unitedmindset.com/jonbcampos/2010/05/12/creating-custom-spark-components/, http://hillelcoren.com/flex-autocomplete/ .

@openstreetmap-trac
Copy link
Author

Author: Richard
[Added to the original trac issue at 11.11am, Monday, 3rd October 2011]

Actually - fixed in systemed/potlatch2@f15d9bc by the time-honoured practice of: if it's not doing what it should, use the magic Flex incantation someUIComponent.validateNow(), which might as well be renamed someUIComponent.workGoddamit().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant