Datatables + sScrollY messes up column header width

Datatables + sScrollY messes up column header width

newbiePnewbieP Posts: 1Questions: 0Answers: 0
edited January 2014 in General
I have a datatable that uses sScrollY for vertical scrolling in jquery tree structure. When the page initially loads, the column header width doesn't match with body width. However, when you sort the column, the width match up.

Here is the datatable code.

[code]

oTable = $('#Customers').dataTable(
{
"bJQueryUI": true,
"iDisplayLength": 10,
"bInfo": false,
"bAutoWidth":false,
"bFilter": false,
"bPaginate": false,
"sScrollY": "325px",
"bScrollCollapse": true,
"bLengthChange": false,
"aaSorting": [[ 0, "asc" ]],
"aoColumns": [
{ "sType": 'numeric' },
{ "sType": 'html' },
]
});

[/code]

Tried few things, fnAdjustcolumnsizing and css, but doesn't seem to work. Any ideas?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Can you link to a test case showing the problem please.

    Allan
This discussion has been closed.