angular-grid-layout
angular-grid-layout copied to clipboard
Newly added items on 2nd row started from right. It should be from left side.
When I add new items, from the 2nd row it adding new boxes from the right side. The left side space remains empty always. Please check attached screenshot

Thanks for reporting!
I have checked the code, and the compact function with compactType='horizontal' doesn't handle well adding items the way is done in this example (at position 0, 0). I think compaction horizontal should resolve as you showed in the image so I marked it as a bug.
If you are interested on resolving it you can make a Pull Request (I can guide you a little bit on which code to change if needed). If not don't worry, it would be done in the near future.
Hi, any update? I have the same problem
In the next published version this issue should be solved. Also many changes and fixes for compact 'horizontal' method, that was clearly behaving strange in many situations. Still may need more work, but it is far better right now IMO.