primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-table column reordering still not working

Open jonbarthol opened this issue 8 years ago • 0 comments

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

[ X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) This is reproducible on the PrimeNG demo page: (https://www.primefaces.org/primeng/#/table/reorder) Click here for a video of the problem. I drag the "Color" column to the left and attempt to insert it between the "Year" and "Brand" columns. The up/down arrows indicated that this is where the "Color" column will be inserted. However, because the mouse cursor is to the left of the "Brand" column, the "Color" column is incorrectly inserted between the "Vin" and "Year" columns.

Current behavior When dragging a column to a new position, the new position is sometimes wrong. If I'm dragging a column to the left, and the mouse cursor is just to the left of a column boundary, the dragged/dropped column ends up one column too far to the left. Similarly, if I'm dragging a column to the right, and the mouse cursor is just to the right of a column boundary, the dragged/dropped column ends up one column too far to the right.

Expected behavior The dragged/dropped column should be positioned where the up/down arrows indicate.

This is the same issue as #5380, which was marked as not reproducible and closed.

jonbarthol avatar Jun 08 '18 13:06 jonbarthol