I’m displaying a table user DT::renderDataTable with the option scrollX = TRUE. Some of the data in the columns are wide (e.g. 0.903920193012930) while the column header is short (e.g. num) and there are multiple columns like this so when you start to scroll, the column headers get misaligned. However, if you click on a column header, the headers become properly aligned. Has anyone experienced this before? If so, have you come up with a fix so the column headers are properly aligned when the table loads?
My attempts at editing the CSS of .dataTables_scrollHead or .dataTables_scrollHeadInner do not seem to work.