swimlane / ngx-datatable

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

Wrong column resize when horizontal scrollbar is enabled #1942

Open mayuska opened 4 years ago

mayuska commented 4 years ago

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior When a horizontal scrollbar is enabled, column resize does not work correctly. If a scrollbar is visible, column resize works fine. If a scrollbar is hidden, it is auto resized. This auto-resizing affects all columns, not only the one that the user wishes to resize.

Expected behavior When horizontal bar is not visible, columns should be resized as user sets it, not auto resized.

Reproduction of the problem The issue can be reproduced in the official demo. http://swimlane.github.io/ngx-datatable/#horz-vert-scrolling scroll-bug-1

What is the motivation / use case for changing the behavior?

Please tell us about your environment: Linux, Windows, MacOS, NPM

joeveiga commented 4 years ago

Possibly related to #1928