Skip to content

Instantly share code, notes, and snippets.

@nyeyint
Created January 23, 2019 04:29
Show Gist options
  • Save nyeyint/1b5c6870e7805cc0f708460d2559e384 to your computer and use it in GitHub Desktop.
Save nyeyint/1b5c6870e7805cc0f708460d2559e384 to your computer and use it in GitHub Desktop.
Fixing jquery datatables header column width not showing full width in bootstrap tabs
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e){
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment