Datatable scroll x issue using fixedColumn -


im using jquery datatables fixedcolumns. working fine im having issue scroll x.

enter image description here

as u can see, cant remove scroll x fixed column. ideas solve this? initialization:

$(document).ready(function(){     var otable = $('#matriz').datatable({                     "bstatesave": true,         "icookieduration": 60*60*24*30*365,         "sdom": 'tc<"clear">lfrtip',         "otabletools": {             "sswfpath": "//cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls_pdf.swf",             "abuttons": [                 {                     "sextends": "xls",                     "sbuttontext": "excel",                     "mcolumns":                          [                              0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,                             13, 14, 15, 16, 17, 18, 19, 20, 21, 22                         ]                 }             ]         },            "aocolumndefs": [             { 'bsortable': false, 'atargets':                 [                     8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23                  ]              }         ],                     "pagingtype": "full_numbers",                     "olanguage": {             "sinfo": "exibindo de _start_ até _end_. resultados encontrados: _total_",             "ssearch": "pesquisar: ",             "semptytable": "não existem solicitações para exibir.",             "slengthmenu": "visualizar _menu_ solicitações",             "opaginate": {                 "sfirst": "primeira",                 "slast": "Última",                 "snext": "próxima",                 "sprevious": "anterior"             }         },                     "ocolvis": {             "buttontext": "ocultar colunas",             "brestore": true,                                     "aiexclude": [ 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 23 ],             "srestore": 'restaurar'         },                     "lengthmenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "todas"]],         "idisplaylength": 10,         scrolly:        325,         "sscrollx": "100%",         scrollcollapse: true,         fixedcolumns:   {             leftcolumns: 1         }                 });     settimeout(function (){         otable.fnadjustcolumnsizing();     }, 10 );         }); 

adding overflow-x:hidden dtfc_leftbodyliner div seems fix display issue.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -