colReorder causes column width to increase when scrollX is enabled

colReorder causes column width to increase when scrollX is enabled

witbrockwitbrock Posts: 1Questions: 0Answers: 0
edited February 2014 in DataTables 1.10
If I enable both colReorder (using dom 'R') and scrollX: true
and then actually reorder columns, all columns grow so wide that they require scrolling. And, since reorder doesn't autoScroll, so wide that they can no longer be reordered!

[code]
$(document).ready(function() {
var oTable=$('#inferenceresults').DataTable(
{
'scrollY': '300px',
'scrollX': false,
'scrollCollapse': true,
'paging': false,
'dom': 'Rtif',
'language': {
'search': 'Filter Answers:'
}
}
[/code]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Please link to a test page as required in the forum rules.

    Based on your code I put this little example together: http://live.datatables.net/nac/1/edit and it appears to work okay, so we would need a test case showing the problem to have any chance of being able to help :-)

    Allan
  • GlebstGlebst Posts: 2Questions: 0Answers: 0
    edited May 2014

    Hi Allan,

    As witbrock said It just needs a:
    'scrollX': true
    in your test case to see the problem...

    Having this issue too in version 1.10

    Gleb

    Edit: http://datatables.net/forums/discussion/comment/61042/#Comment_61042

This discussion has been closed.