I have a form with a datatable file that I set the column width for them in css:
.idcol{width: 5%} .prioritycol{width: 5%} .titlecol{width: 30%} .descriptioncol{width: 40%} .actionscol{width: 10px}
Everything is fine, but when I add the attribute scrollable="true" to have a scrollable datatable, the result is worse:

This is a datatable declaration:
<p:dataTable id="dtable" var="todos" value="#{todo.todoList}" scrollable="true" resizableColumns="false" scrollHeight="300" lazy="true" styleClass="idcol,prioritycol,titlecol,descriptioncol,actionscol">
What is the problem? Thanks!
Holysh
source share