TreeTable height

Hi,

I’ve a problem with the TreeTable size in Vaadin 6.7.6:
The height of the table body is always bigger than necessary which leaves a lot of space after the contained data. Is there any way to reduce the size of the TreeTable to fit its content and to get rid of this extra space?

Thanks,
Dominik

btw: The same is true for the TreeTable examples in the Vaadin Sampler (e.g.
http://demo.vaadin.com/sampler#TreeTableBasic
). This might be a general problem.
12285.png

Hi,

have you tried to call setPageLength(0) for the TreeTable? It should then adjust the height to the amount of rows it contains.

-Tepi

Thank you very much, Tepi! Your suggestion helped: Calling setPageLength(0) did the trick! :smiley:

Dominik