Open dcornello opened 7 years ago
I'm having this issue when I have multiple items that have the same row (row: 1
) in the object passed to ngGridItem
, but they are rendered in different rows, and resize an item that is not in its proper row. If I have 2 items with row: 1
, and one is actually in first row but the second is on the second row, then resizing item in the second row will move it to the first row. If I then resize the item that is now on the second row, it will move back to the first row. The entire time the row is still 1. If I drag the item in the second row at all the row is properly set to 2.
It seems like the bug is that the rows aren't being set properly when they would be on top of each other.
Can you provide me with the config you're using at all?
I'm using the following settings:
{
'margins': [10, 10, 10, 10],
'draggable': true,
'resizable': true,
'max_cols': 10,
'max_rows': 0,
'visible_cols': 0,
'visible_rows': 0,
'min_cols': 1,
'min_rows': 1,
'col_width': 0,
'row_height': 85,
'cascade': 'none',
'min_width': 0,
'min_height': 0,
'fix_to_grid': true,
'auto_style': true,
'auto_resize': true,
'maintain_ratio': false,
'prefer_new': true,
'limit_to_screen': true,
'sizey': 1,
'dragHandle': '.grid-container',
}
When the cascade direction is setted on Off, and you move some boxes and then you chenge the values of resizeable or draggable property, the boxes rearange themselves (i think randomly)