Content in row headers can be forced to wrap using a simple "<br/>" tag in the string. Unfortunately it isn't that simple with non-header cells.
I found a working solution in this Vaadin forum post.
You simply have to create your own CSS stylesheet definition and add the following code to it:
.v-table-cell-wrapper {
white-space: normal;
}
For scrolling tables, this solution will cause issues. Variable height rows are only supported by Vaadin if pageLength is 0.
ReplyDelete