Set number of search results on paper-autocomplete without scrollbar

73 Views Asked by At

How do I increase the number of search results displayed on paper-autocomplete control without scroll bar. By default I am getting 7 items, but I would like to increase the count and get rid of the scrollbar.

1

There are 1 best solutions below

1
User 28 On BEST ANSWER

I assume you mean this paper-autocomplete library. The library already prepare an attribute for that which is maxViewableItems.

You can set it on paper-autocomplete-suggestions element like:

<paper-autocomplete-suggestions
  max-viewable-items='15'>
</paper-autocomplete-suggestions>

Plunker example

If you mean another library, let me know I will update my answer again.