Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 109 forks source link

Skip horizontal caret tracking when @wholeField #63

Closed cretep closed 9 years ago

cretep commented 10 years ago

When the whole field is used (ie. one rule, no token) then left-align the dropdown, rather than follow the cursor horizontally.

Alternative, with user setting: https://github.com/cretep/meteor-autocomplete/commit/0e1c18005ab575641991bb5b7ab341a9253cffef

mizzao commented 10 years ago

I'm guessing this is an attempt to address #55?

The reason we didn't do it this way is because we'd like to align the cursor with the first character, rather than the boundary of the element. But maybe this is okay, for now...

cretep commented 10 years ago

Oh, I missed #55.

Every tokenless autocomplete box I can think of aligns the left and width to the element (cf. google.com, twitter.com, select2, jQuery UI, Chrome and Firefox form history)

mizzao commented 10 years ago

I guess that is reasonable then. We started with tokens :)