This demo shows what happens when items are dynamically added and removed. You can remove an item by clicking its “x”, and add a new one with the button. After adding an element, you can use the normalize or adjust functions. But this will actually be used to prevent a situation where your box will overlap with another.