FlowingCode / TwinColGridAddon

TwinColGrid Vaadin Add-on
https://www.flowingcode.com/en/open-source/
Apache License 2.0
7 stars 7 forks source link

Grids superposition with buttons on resizing #155

Closed ngonzalezpazFC closed 1 year ago

ngonzalezpazFC commented 1 year ago

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. tcgbug

image

javier-godoy commented 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);

image

ngonzalezpazFC commented 1 year ago

The problem was not a TwinColGridAddon issue, it was related to the tcg container Component and I was able to fix it.