Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81938

Horizontal scroll is not working for header row

$
0
0

I'm using this setup:
$(document).ready(function () {
$('#datatable-schedule').DataTable({
paging: false,
scrollY: 'calc(100vh - 240px)',
scrollCollapse: true,
scrollX: true,
searching: false,
ordering: false,
info: false
});
});

I have a table with 30 columns.
With my test html this table works as expected. It scrolls perfectly vertically and horizontally.

But when I put the table in my larger HTML and I scroll horizontally, the headers stay in place.
Most likely this is because of a conflict with my other css or js files, but I can't find what.

Does anybody have a suggestion what could lead to this unexpected behavior?

Thanks in advance.


Viewing all articles
Browse latest Browse all 81938

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>