I'm facing a strange behaviour of Primefaces (v.5.1) Datatable. I have a datatable with srollable=true:
<p:dataTable var="_udf" value="#{unitaDiFornituraList}" scrollHeight="350" liveScroll="true" scrollRows="20"
scrollable="true" id="risultati" widgetVar="risultati">
When there are lots of items the scrollbar is shown and the header is correctly aligned:
When there are up to 5 items the scrollbar doesn't appear and the header correctly hide the gap on the right for the scrollbar:
The strange thing is when I have more than 5 items but not enough to show the scrollbar. In this case the header shows the gap and thus it's not aligned:
Any ideas? Thank you