material icon indicating copy to clipboard operation
material copied to clipboard

Autocomplete suggestions remain at same position onScroll

Open asaharan opened this issue 11 years ago • 9 comments

While typing if we scroll position of suggestion remain fixed See the gap between input box and suggestion box screenshot from 2015-05-25 17 41 55

asaharan avatar May 25 '15 12:05 asaharan

+1

matthieuh avatar Jun 04 '15 08:06 matthieuh

Same here. Tried with 0.9.8. http://gyazo.com/b7dcb0f28acd5568c259a3a453b9ac9e

krassx avatar Jun 09 '15 10:06 krassx

+1 (v. 0.10.0)

cpae avatar Jun 09 '15 15:06 cpae

+1

SriramaDanturthi avatar Jun 11 '15 16:06 SriramaDanturthi

@robertmesserle How does this work if the input isn't visible when it gains focus? For example if you tab to an auto complete while you are scrolled past it. This sounds like it'd lock the view and be very hard to understand for the user.

epelc avatar Jun 12 '15 14:06 epelc

@epelc This is modeled after the way that select components work in Chrome on Mac. The screen is only locked when the select menu is showing. The browser should move the input into view when the user focuses it, but I'm going to spend some time today trying to break this and see if I can find any edge cases that need to be addressed. If you find any examples where this breaks, please send a CodePen my way.

robertmesserle avatar Jun 12 '15 15:06 robertmesserle

@robertmesserle Thanks. I was just going off the changelog info I didn't get to test it in my app yet. I'm waiting for a good time to update #2710 so I can get it merged soon. I've been running a fork for several weeks with that pr so I haven't been able to easily update and test the later 0.9.X and 0.10.X releases. I'll let you know if I find anything though.

epelc avatar Jun 12 '15 15:06 epelc

@epelc Interestingly, my description of how the browser would handle it worked in 0.9.8, but when tested against master just now, doesn't seem to move as expected. Might need to add a delay before locking scrolling to account for the browser's build-in functionality.

robertmesserle avatar Jun 12 '15 16:06 robertmesserle

Confirmed, that fixed it. Committing to master now. Good call! =p

robertmesserle avatar Jun 12 '15 16:06 robertmesserle