Don't scroll up if unnecessary

Scroll down in dropdown then press UP.
Before fix : dropdown scrolls up even if unnecessary, e.g. the new active option is entirely visible in the dropdown.
After : dropdown scrolls up only if the target option is out of the visible part of the dropdown.