version 1.10.10 - scrollX - Bug?
version 1.10.10 - scrollX - Bug?
gdame
Posts: 1Questions: 1Answers: 0
Since version 1.10.10 the scrollX option is centering the tbody part on the page see fidles https://jsfiddle.net/gdame/8v8ocx3k/ (version 1,110,10) and https://jsfiddle.net/gdame/jpmo6zf8/ (same table but version 1,1,10,9) If you maximize the screen width you see that under the 1,110,10 the body keeps centering on the page while the header keeps left aligned!
This discussion has been closed.
Answers
Add
width="100%"
to yourtable
. Otherwise DataTables won't automatically adjust the table width: https://jsfiddle.net/8v8ocx3k/5/ .Allan