diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java index 9ac2eb2..239f86b 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java @@ -56,7 +56,8 @@ public OrientationDemo() { twinColGrid.addColumn(Book::getTitle).setHeader("Title").setSortable(true); FormLayout formLayout = new FormLayout(); - Select orientationField = new Select<>(Orientation.values()); + Select orientationField = new Select<>(); + orientationField.setItems(Orientation.values()); orientationField.addValueChangeListener(ev -> twinColGrid.withOrientation(ev.getValue())); orientationField.setValue(twinColGrid.getOrientation()); orientationField.setWidth("225px");