0

When I resize the header, the body also resizes a bit, but incorrectly. For example:

Example

The grid is initialized as below:

var oTable = $('#grid').dataTable( {
    dom: 'Rlfrtip',
    "scrollX": true,
    "bPaginate": false,
    "bLengthChange": false,
    "bFilter": true,
    "bSort": true,
    "bInfo": false,
    "bAutoWidth": false
  });

I'm using the ColReorderWithResize.js v.1.0.7

Any ideas?

Mark
  • 140
  • 1
  • 10

1 Answers1

0

try to give fixed width like this:

  aoColumns: [ 
    { "sWidth": "50px" },
    { "sWidth": "150px" },
    { "sWidth": "50px" },
    { "sWidth": "50px" },
    { "sWidth": "50px" }
  ]
Suchit kumar
  • 11,809
  • 3
  • 22
  • 44