Go to the demo page for flex:
https://swimlane.github.io/ngx-datatable/#/flex
Try to decrease width of any of the columns. This causes incorrect calculation of widths, and the table does no longer fill it's container:
Using 'force' instead of 'flex' seems to fix this issue.
This issue is fixed in this fork's commit:
7cef0eb