Hello everyone,
The following issue happens when I have two grids in a PagedTabs component (it’s an addon).
You can reproduce the issue with the following code:
Grid<Test> grid1 = new Grid<Test>();
grid1.setSizeFull();
grid1.setMultiSort(true);
grid1.getElement().setAttribute("theme", "no-border row-stripes");
grid1.setSelectionMode(SelectionMode.MULTI);
grid1.addColumn(Test::getId, "ID");
grid1.addColumn(Test::getCode, "Code");
grid1.addColumn(Test::getName, "Name");
grid1.setItems(getLongListOfItems());
Grid<Test> grid2 = new Grid<Test>();
grid2.setSizeFull();
grid2.setMultiSort(true);
grid2.getElement().setAttribute("theme", "no-border row-stripes");
grid2.setSelectionMode(SelectionMode.MULTI);
grid2.addColumn(Test::getId, "ID");
grid2.addColumn(Test::getCode, "Code");
grid2.addColumn(Test::getName, "Name");
grid2.setItems(getLongListOfItems());
PagedTabs tabs = new PagedTabs();
tabs.setSizeFull();
tabs.add(grid1, "Grid 1");
tabs.add(grid2, "Grid 2");
add(tabs);