I'm unable to show a vertical scroll in my datatable. My HTML structure is as follows:
<div class="table-container" id="table-order">
<div class="order-container" style="height:50%;overflow:hidden;"> <!--Style set dynamically-->
<div class="title-div">
//Table title
</div>
<div class="result-set">
<table id="order-table-text"></table>
</div>
</div>
</div>
And my jQuery is :
$('#order-table-text').DataTable({
bAutoHeight: true,
data: dataSet,
deferRender: true,
fixedHeader: true,
scrollY: '50%',
scrollX: '800px',
scrollCollapse: true,
scroller: {
displayBuffer: 1,
boundaryScale: 1
},
dom: 'frtiS',
autowidth: true
})
I'm unsure as to why the table is not scrollable on either axes. What can I do to fix this?