Skip to content

Conversation

@balvig
Copy link
Contributor

@balvig balvig commented Sep 25, 2014

Use case

When using a list with a fixed height set to show an exact number of suggestions, it creates a much better effect if the list scrolls by exactly the height of one suggestion when you use the cursor keys to scroll through.

Examples

Before: Using fixed value of heightDelta: 25 last element is cut off

demo_2

After: Using automatically calculated value of heightDelta: 43

demo

Thanks for an awesome plugin by the way! 👍

tkirda pushed a commit that referenced this pull request Sep 25, 2014
Use height of items to compute heightDelta
@tkirda tkirda merged commit 505485e into devbridge:master Sep 25, 2014
@balvig balvig deleted the delta branch September 25, 2014 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants