Issue with small tables and header/footer width

Issue with small tables and header/footer width

rarograrog Posts: 1Questions: 0Answers: 0
edited May 2012 in General
If the table width is small enough, at first the width of header and footer is calculated correctly, but if I start to search and the filter is applied, the string in the footer are changed and both footer and header become wider than the table which has fixed size in normal case.

This could be avoided, if the table wrapper gets the same size as the table, this would require to add following as the last line in "_fnCalculateColumnWidths" function:
[code]oSettings.nTableWrapper.style.width = oSettings.nTable.style.width;[/code]

This fixes the bug for me.

Replies

  • allanallan Posts: 63,547Questions: 1Answers: 10,476 Site admin
    edited May 2012
    Hi,

    1. Can you ensure that you are using the very latest version of DataTables (1.9.2.dev - http://datatables.net/download ).

    2. Can you post a link to a demo of the problem so I can test it and include the fix in DataTables.

    Thanks,
    Allan
  • rarograrog Posts: 1Questions: 0Answers: 0
    Yes, it happens with current nightly, too. I've compiled an example and have uploaded it here: http://rghost.net/38004133

    Just try to use the search field, as soon as data is filtered (and it's written by datatables on screen) the header and footer get wider than the table, which has a compiled fixed width.
This discussion has been closed.