angular-ui/bootstrap — pull request #748 by jdecool (2013-08-02 20:15:23+00:00)
Title: fix(typeahead): Ensure the cursor visible in the suggestions view

I remove the jQuery dependency and use only native angular method.

The function "ensureVisibility" is private and can't be test... It's similar to the "getMatchesAsync" method.
But I had some test on keyboard navigation.

I think, it's the minimal code to calculate the scroll position.