I’m experiencing an annoying behaviour with ComboBoxes :
In Google Chrome (v 54), when scrolling with mouse wheel through a combobox with multiple pages, switching to the next/previous page takes a very long time (something like 3 seconds).
I looked at Chrome’s Developer Tools window, and I can see that the call to the server to fetch the next data is very fast, so the problem is not here, it looks like it’s only the client that takes a long time to display the page.
When using the keyboard to scroll (typing filter text in the combobox, using the arrow keys, or using page down/page up keys), or when clicking the little arrows, loading the other pages is fast, so the problem is only when using the mouse scroll wheel.
I also tried with Internet Explorer 11, and there is no problem there.
Is this a known bug ? If not, any idea where I can look to find out what’s happening during these long seconds ?
Add this to MyUI.init :
ComboBox c = new ComboBox();
for(int i = 0 ; i < 100 ; i++) {
c.addItem("data " + i);
}
layout.addComponent(c);
- Launch the application on Tomcat 8 from Eclipse
The only workaround I can think of is to not use a paginated ComboBox (set the pageLength to 0).
If you can make a fix in the Framework, you can submit a pull request in GitHub and it’ll be included once it passes the review process and can be released (ie. it doesn’t break anything else and meets the submission criteria). If you need to get it fixed for you by the dev team and can’t wait for them to pick it up from the backlog, you can contact Support and request a Bug Fixing Priority.
Happy to help, even a little. In case you ever want to take a look at the Vaadin Framework, building it yourself became a lot easier a while ago as
it can now be done with Maven .