colReorder causes column width to increase when scrollX is enabled
colReorder causes column width to increase when scrollX is enabled
witbrock
Posts: 1Questions: 0Answers: 0
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]
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]
This discussion has been closed.
Replies
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
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