Eyvind Almqvist
Eyvind Almqvist

Reputation: 332

Vaadin TreeGrid loses its tree structure

enter image description hereenter image description hereThe TreeGrid renders the root, the nodes and the leafs in the same way. They are all on the same distance in x-direction. So they all look the same, which makes it not look like a tree structure.

The TreeGrid looks like it should in the local IntelliJ development environment, but when the webb app is deployed to a Tomcat server, the TreeGrid loses its structure. How can this be solved? This is a part of my code:

textInsertableBrowserGrid = new TreeGrid<>();
        textInsertableBrowserGrid.setSizeFull();
        textInsertableBrowserGrid.setWidth(TEXT_AREA_WIDTH, Unit.PIXELS);
        textInsertableBrowserGrid.setHeight(TEXT_BROWSER_HEIGHT, Unit.PIXELS);
        textInsertableBrowserGrid.setItems(textInsertableList, item -> ((TextFolderOrNode) item).getChildrenSortForNewLaw(false, law));
        textInsertableBrowserGrid.addHierarchyColumn(TreeItem::getName);
        textInsertableBrowserGrid.setVisible(true);

Upvotes: 0

Views: 28

Answers (0)

Related Questions