DataTables 1.10.5 Width columns

DataTables 1.10.5 Width columns

FlekyFleky Posts: 8Questions: 2Answers: 0

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

  • TerradonTerradon Posts: 16Questions: 5Answers: 2

    You could hardcode the width in the header cells directly or via added css in your css file.

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    Answer ✓

    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

  • FlekyFleky Posts: 8Questions: 2Answers: 0

    Hi Allan,

    the nightly build (1.10.6-dev) works perfectly.
    Thank you for your feedback.

    Tomas

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    Answer ✓

    Good to hear - thanks for the feedback!

    Allan

This discussion has been closed.