BTMorton / angular2-grid

A drag/drop/resize grid-based plugin directive for angular2
https://bmorton.co.uk/angular/
MIT License
354 stars 159 forks source link

Property 'fix_item_position_direction' won't work since v3.0.0 #300

Closed pintojeremy closed 1 year ago

pintojeremy commented 5 years ago

Hi there,

I've spotted an issue since v3.0.0. A freshly added item won't pop at the end of rows anymore. I guess it's about the 'fix_item_position_direction' property and the way you guys manage to do that.

After a little debugging time I found out that the fixGridPosition function manage to return correct new positions but it seems that fixGridCollision function will relocate our new item afterwards.

Here a version that work as intended (v2.3.1) (stackblitz editor here)

Here a version with the issue (v3.0.0) (stackblitz editor here)

Thanks for your work ;)

pintojeremy commented 1 year ago

I guess I'll close this issue as its stalled