Set vaadin table height to fit contents

Viewed 11219

I use CustomLayout in my project to separate UI object and their style.

I have some problem with tables.

I define a div and I want the table's height set to div's height.

Which is the best way?

I thought:

table.setsizeFull() ;
table.setPageLength(0);

in the code, but the result is not what I want. I want the table full sized in div's dimensions, both with or without elements inside.

Any suggest?

1 Answers
Related