Hello,
I’ve been writing application with vaadin for 6 months. I’ve encountered a dropdown scroll problem when i get closer to the end of the project. Writing extension is not effective solution for my project, because there are many dropdowns (like comboboxes, menus, popupbuttons, etc…).
I wrote simple demo to show the dropdown problem.
Here is link and source code.
http://www.emircem.com:8080/PopupProblem/
// PopupproblemUI.java
@SuppressWarnings("serial")
@Theme("popupproblem")
public class PopupproblemUI extends UI {
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = PopupproblemUI.class)
public static class Servlet extends VaadinServlet {
}
@Override
protected void init(VaadinRequest request) {
final CustomLayout layout = new CustomLayout("test");
setContent(layout);
ComboBox combobox = new ComboBox();
layout.addComponent(combobox, "combobox");
combobox.addItem("Item 1");
combobox.addItem("Item 2");
combobox.addItem("Item 3");
}
}
//test.html in themes/mytheme/layouts
<div style="height:2000px;">
<div location="combobox"></div>
</div>
When i click combobox then scroll down to the page, dropdown of combobox goes down too. How can i fix this problem. Please write detailed explanation or advice because i’ve tried many ways and i can’t handle the problem. I need help.
Thanks,
Emir Cem.