Vaadin 8.1 Tree Margins


I recently updated some of my old Vaadin 7 trees to the new 8.1 version ones. I noticed that in the new tree by default there is a lot of space between the items in the tree making it take up a lot more space. Is there anyway to make them closer together similiar to the old tree?

I tried adding the following but it did not quite do what I was looking for:

addStyleName(ValoTheme.TREETABLE_COMPACT); addStyleName(ValoTheme.TREETABLE_SMALL); Attached is an example of what I am talking about, any help would be appreciated. Thanks
34114.pdf (50.5 KB)

Hi Doug,

The Valo theme is missing these parts for the new Tree and TreeGrid components. Right now we can’t do anything about this, since some key people are on vacation. I opened a
ticket for this issue
. You should follow it for the follow up. There’s also a link to this forum post, so we’ll try to remember give updates here aswell.


Any update on this?
I noticed that Vaadin added more margin and space to tree, how can I get it to be similar to Vaadin 7 tree?


Jian unfortunately I have no updates on the issue.