Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Lazy Query Container: Table Row Height and Scrollbar size issue

The Vaadin Guy
1 decade ago Oct 12, 2011 6:29pm
Mathias Clerc
1 decade ago Oct 13, 2011 2:09am

The table component does not support rows of different sizes.
It basically do a (number of rows)*(height of row) to know the height of the table.

To have the table know the actual height of all rows, it would require loading all the table rows at once (so no lazy loading).

So your options are to :

  • use a fixed size for each row this might not be possible depending on your content
  • load the whole table at once (set page length to the table length and wrap into a Panel) which seems to be a really bad idea seeing the size of your data
  • use a paged table, it's not as smooth as the table but you can load one whole page at once and so have the correct scrollbar length for each page
  • use a technique I am not aware of