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

Grid item vertical position is not recalculated after increasing the number of rows #284

Open bruiztorres opened 6 years ago

bruiztorres commented 6 years ago

First of all, thank you for your amazing work :).

In my project, for some reasons I need to increase or decrease the number of available rows.

When I'm decreasing the number of rows, since some elements are out of the grid, the vertical axis (y) is recalculated in order to fit with the new grid, that's great. The problem arises when I try to come back to the previous status, so I increase the number of rows and I'm expecting these items should be displayed as they were. However, it seems the vertical axis is not recalculated since the items are still valid for this new grid. Do you know any way to recover the previous vertical values, force this vertical recalculation or some workaround to deal with that? Thanks in advance.

damianrebolo commented 6 years ago

+1

vitoresende commented 6 years ago

+1