1

How do I correct the issue with the .dataTables_wrapper width being larger than the actual table data width? (using autowidth for the table data). I am using oTable.fnAdjustColumnSizing(); to resize the columns after the page is loaded. Everything looks fine for the column widths, but the wrapper is still too large.

var oTable = $('.admin_users').dataTable({
        "aaSorting": [[ 0, "desc" ]],
        "bJQueryUI": true,
        "sPaginationType": "full_numbers",
      //  "sAjaxSource": 'SQL/dataTable.php',
        "bStateSave": true, //Use a cookie to save current display of items
        "aoColumns": [
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            { "sType": "date", "sClass":"center" }
        ]

    });
    oTable.fnAdjustColumnSizing();
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146

1 Answers1

1

Found the solution: Add this to the table initilization

"fnInitComplete": function() {
                oTable.fnAdjustColumnSizing();
         }
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146