Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
combo-box always opens up
In Vaadin demo combo-box opens up only if there isn't enough space to open down. But in my case it opens always up.
How to fix it? (can it happens because of changes to style, that we made?)
public class LocationSelector extends CssLayout {
public LocationSelector() {
ComboBox locationBox = new ComboBox();
locationBox.addItems("Long Beach, CA", "Washington, DC", "Other");
locationBox.setNullSelectionAllowed(false);
locationBox.setNewItemsAllowed(false);
locationBox.setInputPrompt("Select your city");
locationBox.setStyleName("locationBox");
locationBox.setPageLength(1000);
this.addComponent(locationBox, "locationBox");
}
}
Last updated on
Try setting page length to 0 (disabled paging, probably what you wanted).
Last updated on
You cannot reply to this thread.