VAADIN:组合框总是打开

时间:2015-08-20 09:01:14

标签: combobox vaadin vaadin7

在Vaadin演示组合框中只有在没有足够的空间打开时才会打开。但就我而言,它始终打开。

如何解决? (它可以因为我们制作的风格改变而发生吗?)

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");
    }
}

UPD:链接到屏幕截图:https://vaadin.com/documents/portlet_file_entry/10187/temp.png/157a29b7-2f35-4ef1-9a2e-02506a6ede5b

0 个答案:

没有答案