I am experiencing an issue with the grid not recalculating its height when an item is added, removed or moved and the number of rows should change. Unfortunately, my application is such that I cannot easily reproduce the issue in a public plunkr, but I have taken a series of screenshots (see below) to demonstrate the issue:
1) Items laid out in 2 rows:
2) 1 Item is dragged to a third row:
3) When that item is then dragged back to the second row, the grid height is not recalculated and, instead, the whitespace of the third row remains:
The correct and expected behavior can be seen here: https://bmorton.co.uk/angular/ although I cannot duplicate the behavior I am experiencing on that demo.
Hmm, that's an interesting one. I'll try to look into it further but when I try to reproduce your config on the demo I get very unusual results, which means there's probably more issues I need to look into...
I am experiencing an issue with the grid not recalculating its height when an item is added, removed or moved and the number of rows should change. Unfortunately, my application is such that I cannot easily reproduce the issue in a public plunkr, but I have taken a series of screenshots (see below) to demonstrate the issue:
1) Items laid out in 2 rows:
2) 1 Item is dragged to a third row:
3) When that item is then dragged back to the second row, the grid height is not recalculated and, instead, the whitespace of the third row remains:
My grid config is as follows:
The correct and expected behavior can be seen here: https://bmorton.co.uk/angular/ although I cannot duplicate the behavior I am experiencing on that demo.
I am using
Angular 2.0.1
and my version of Angular2-Grid is2.0.1
as seen here: https://www.npmjs.com/package/angular2-grid