Primefaces datatable header alignment with scrollbar -


i'm facing strange behaviour of primefaces (v.5.1) datatable. have datatable srollable=true:

<p:datatable var="_udf" value="#{unitadifornituralist}" scrollheight="350"  livescroll="true" scrollrows="20"      scrollable="true" id="risultati" widgetvar="risultati"> 

when there lots of items scrollbar shown , header correctly aligned: scroll

when there 5 items scrollbar doesn't appear , header correctly hide gap on right scrollbar: no scroll

the strange thing when have more 5 items not enough show scrollbar. in case header shows gap , it's not aligned: wrong alignment

any ideas? thank you


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -