angular-grid-layout
angular-grid-layout copied to clipboard
Insertion in empty place, even if place is not enough
Want to share my idea!
Look on layout example, I want achieve following functionality, when we are moving card, in different places appears a placeholder if it enough place to insert card in certain place, it's good, but better can be, if we decrease module to minimalWidth and drawn a projection (placeholder) in a place with width that less width of our card, take a look on examples bellow. So if I hover card 7 (while dragging) over card with number 4, width of my module should decreases to width that is equal width of empty space on the right side of fourth card, and drawed a placeholder, but by condition that it's width is >= minimalWidth.
How hard to implement it and can you implement this without changing whole algorithm of rearanging cards?

Hi @dennissimmo !
I get your idea, you want to be able to shrink grid items width while dragging, depending on the minimalWidth variable.
Okay so, let's continue your example, you have moved the element 7 to the right-top edge, and it has shrinked. What about if you move it again to the initial position? does it grow to its initial size, or it keeps shrinked as it is now? Just for knowing if your feature request has only shrinking width option or variable width in general.
Right now it seems more a 'niche' feature. But let's see.
Hi @dennissimmo !
I get your idea, you want to be able to shrink grid items width while dragging, depending on the
minimalWidthvariable. Okay so, let's continue your example, you have moved the element 7 to the right-top edge, and it has shrinked. What about if you move it again to the initial position? does it grow to its initial size, or it keeps shrinked as it is now? Just for knowing if your feature request has only shrinking width option or variable width in general.Right now it seems more a 'niche' feature. But let's see.
Hello @llorenspujol What about if you move it again to the initial position? does it grow to its initial size, or it keeps shrinked as it is now? It should grow to its original size, which is how your algorithm works now, i.e. it gets to its maximum width until it intersects with one of the modules.
Thank you for response!