I solved this problem by wrapping the "dataTable" Table with a div
with overflow:auto
:
.dataTables_scroll
{
overflow:auto;
}
and adding this JS after your dataTable
initialization:
jQuery('.dataTable').wrap('<div class="dataTables_scroll" />');
Don't use sScrollX
or sScrollY
, remove them and add a div
wrapper yourself which does the same thing.