Issue with small tables and header/footer width
Issue with small tables and header/footer width
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.
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.
This discussion has been closed.
Replies
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
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.