aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2023-10-24 17:39:30 +0000
committerzsloan2023-10-24 17:39:30 +0000
commita9dcc1091a3b02c79e9e6625f22dced79ee0a1a5 (patch)
treec02c98296f0c233a31d31e3dedbec4fff4815891
parent05939fb1742df401d6f0779300bd0d4794f3dcd7 (diff)
downloadgenenetwork2-a9dcc1091a3b02c79e9e6625f22dced79ee0a1a5.tar.gz
Make DataTables automatically adjust columns are generating the table
-rw-r--r--wqflask/wqflask/static/new/javascript/create_datatable.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/create_datatable.js b/wqflask/wqflask/static/new/javascript/create_datatable.js
index 84754da8..541dfdf5 100644
--- a/wqflask/wqflask/static/new/javascript/create_datatable.js
+++ b/wqflask/wqflask/static/new/javascript/create_datatable.js
@@ -70,6 +70,7 @@ create_table = function(tableId="trait_table", tableData = [], columnDefs = [],
theTable = $('#' + tableId).DataTable(tableSettings);
theTable.draw();
$('#' + tableId + '_container').css("width", String($('#' + tableId).width() + 17) + "px");
+ theTable.columns.adjust().draw();
}
}