Closed ngonzalezpazFC closed 1 year ago
Hello. I was not able to reproduce this issue.
TwinColGrid<Integer> tcg1 = new TwinColGrid<>();
TwinColGrid<Integer> tcg2 = new TwinColGrid<>();
tcg1.setCaption("Caption");
tcg1.setItems(IntStream.range(1, 20).boxed().toList());
tcg1.getAvailableGrid().addColumn(x -> x).setHeader("Header");
tcg1.getAvailableGrid().addColumn(x -> x).setHeader("Header");
tcg1.setAutoResize(true);
tcg1.setWidthFull();
tcg2.setCaption("Caption");
tcg2.setItems(IntStream.range(1, 20).boxed().toList());
tcg2.getAvailableGrid().addColumn(x -> x).setHeader("Header");
tcg2.getAvailableGrid().addColumn(x -> x).setHeader("Header");
tcg2.setAutoResize(true);
tcg2.setWidthFull();
SplitLayout split = new SplitLayout(new VerticalLayout(tcg1, tcg2), new Span());
split.setSizeFull();
add(split);
The problem was not a TwinColGridAddon issue, it was related to the tcg container Component and I was able to fix it.
When tcg changes its orientation, components overlaps. e.g, two tcg overlaps its grids and buttons after changing orientation, with auto resizing set to true.