datatables adjust column width when modal show up code example
Example: datatables adjust column width when modal show up
$('#ASBresultsModal').on('shown.bs.modal', function () {
var table = $('#example').DataTable();
table.columns.adjust();
});