Label description = new Label(
"Open this application in Chrome, zoom out (cmd + \"-\") and "
+ "open the ComboBox for weird behaviour.");
mainWindow.addComponent(description);
Layout formLayout = new GridLayout(2, 1);
// formLayout.setWidth("100%");
formLayout.setWidth("1000px");
ComboBox countryField = new ComboBox();
countryField.addItem("Finland");
countryField.addItem("Sweden");
countryField.addItem("Canada");
countryField.addItem("USA");
countryField.setCaption("Country");
countryField.setWidth("100%");
formLayout.addComponent(countryField);
ComboBox statusField = new ComboBox();
statusField.addItem("Available");
statusField.addItem("On vacation");
statusField.addItem("Busy");
statusField.addItem("Left the building");
statusField.setCaption("Status");
statusField.setWidth("100%");
formLayout.addComponent(statusField);
mainWindow.addComponent(formLayout);
}