swimlane / ngx-datatable

✨ A feature-rich yet lightweight data-table crafted for Angular
http://swimlane.github.io/ngx-datatable/
MIT License
4.62k stars 1.68k forks source link

Column resizing does not work when only one column #2012

Open vkoman opened 2 years ago

vkoman commented 2 years ago

Currently

I'm submitting a ...

[x] bug report

Current behavior If the table contains only one column - it cannot be resizable in standard mode <ngx-datatable [columnMode]="ColumnMode.standard"> <ngx-datatable-column name="Column1" [width]="100"></ngx-datatable-column> </ngx-datatable>

But, it works fine for 2 and more columns <ngx-datatable [columnMode]="ColumnMode.standard"> <ngx-datatable-column name="Column1" [width]="100"></ngx-datatable-column> <ngx-datatable-column name="Column2" [width]="100"></ngx-datatable-column> </ngx-datatable>

Expected behavior

Columns resizing works properly for one and more columns

Please tell us about your environment:

node v14.17.1 npm v6.14.13

vkoman commented 2 years ago

Also, please note, there is a spelling mistake in the resizeable property of TableColumn interface