Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

visibleRowCount not working with makeAutocomplete #739

Open
mutschml opened this issue Jun 13, 2018 · 0 comments
Open

visibleRowCount not working with makeAutocomplete #739

mutschml opened this issue Jun 13, 2018 · 0 comments

Comments

@mutschml
Copy link

I want to change the size of the dropdown of an Autocomplete combobox. I tried visibleRowCount, but it doesn't work with autocomplete. The list always shows 10(?) Entries. When I remove the autocomplete part, the drop down is small.
Here is my code:

  combobox(controller.model.Name, values = nameList) {
    visibleRowCount = 5 // not working for autocomplete in V1.7.16
    makeAutocompletable(automaticPopupWidth = false) {
      nameList.filter { current -> converter.toString(current).startsWith(it, true) }
    }

I don't have a big list, and even typing one letter only has like 1-3 entries. So I wanted to reduce size of the popup. It is even more annoying, when it pops above the box.
Opening with visibleRowCount would be nice. Even better would be a smaller box if the first letter has fewer matches than visibleRowCount (something like listboxRowCount = min(visibleRowCount, first-letter-matches.count)).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant