Closed cretep closed 9 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...
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)
I guess that is reasonable then. We started with tokens :)
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