scrollable uses more than one table, non-scrollables use one table
The problem with two tables is, that sometimes their width is not same. Even when you specify all colums width px. Fixing table width can make column content get wider, when it exceeds column width, that is not necessarily true for column header. So you end up having column headers displaced.
Maybe adding overflow hidden to column content could hack it. But column header and content is not anymore one logical unit. I hope you realise that this is a problem and leads to unexpected behaviour of the table.
Unfortunately, I cannot propose any patch, as I cannnot make much sense of DataTableRenderer.java. But if this would be xhtml, I implemented height as in [1].
Code: Select all
tbody{
display:block;
height:200px;
width:100%;
overflow: auto;
}
Thus, scroll would be inside one table and the big header for whole table can still be placed above.
Greets,
Adam
[1]
http://www.imaputz.com/cssStuff/bigFourVersion.html