DataTables 1.10.5 Width columns
DataTables 1.10.5 Width columns
Hello,
after update of DataTables plugin from 1.10.4 to 1.10.5 i have problem with columns width of my table. I investigated that the problem is in this line in lib:
tableWidthAttr = table.style.width || table.getAttribute('width') // from DOM element
The previous version contains just this:
tableWidthAttr = table.getAttribute('width')
It looks like i need always return null instead of '0px' but dunno why.
Can you help you how solve this problem without changing DataTable lib?
Thanks,
Tomas
This question has accepted answers - jump to:
Answers
You could hardcode the width in the header cells directly or via added css in your css file.
Hi,
I committed a fix for this last week. The nightly is up-to-date with this change and you could try using that.
If the nightly doesn't work for you please link to a test case showing the issue.
Thanks,
Allan
Hi Allan,
the nightly build (1.10.6-dev) works perfectly.
Thank you for your feedback.
Tomas
Good to hear - thanks for the feedback!
Allan