You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting grid to grid.setHeightMode(HeightMode.UNDEFINED); resuts in wrong amount of rows to be displayed.
Code to reproduce:
final VerticalLayout layout = new VerticalLayout();
List people = Arrays.asList(new Person("Nicolaus Copernicus", 1543),
new Person("Galileo Galilei", 1564), new Person("Johannes Kepler1", 1571),
new Person("Johannes Kepler2", 1571), new Person("Johannes Kepler3", 1571));
// Create a grid bound to the list
Grid<Person> grid = new Grid<>();
grid.setItems(people);
grid.addColumn(Person::getName).setCaption("Name");
grid.addColumn(Person::getBirthYear).setCaption("Year of birth");
grid.setHeightMode(HeightMode.UNDEFINED);
grid.setWidth("900px");
layout.addComponent(grid);
setContent(layout);
The text was updated successfully, but these errors were encountered:
There was a fix for this in pull request #9104 merged to master yesterday. Will be picked to 8.0 and one part of the patch might apply for 7.7 as well.
Setting grid to grid.setHeightMode(HeightMode.UNDEFINED); resuts in wrong amount of rows to be displayed.
Code to reproduce:
final VerticalLayout layout = new VerticalLayout();
List people = Arrays.asList(new Person("Nicolaus Copernicus", 1543),
new Person("Galileo Galilei", 1564), new Person("Johannes Kepler1", 1571),
new Person("Johannes Kepler2", 1571), new Person("Johannes Kepler3", 1571));
The text was updated successfully, but these errors were encountered: