I really appreciate the work done for this component, so thank you!
I found a positioning issue with a particular use case I have. I am prepending items to the masonry layout while maintaining the position/index of some existing items. I am not using the 'stamp' option of masonry in order to still utilize the layout/positioning logic for the 'stuck' items.
If you click 'prepend' you will see the positioning issue. The turquoise item should be kept in place. I would like the end result for the example to look like this after prepending one item:
If a child of the masonry layout has an image, I have seen the issue be resolved most of the time by the layout call in the images loaded callback, but not always.
Didn't see the need to prepend the new item(s) when items are already being reloaded before a layout call. Let me know what you think of the change. :)
Hello!
I really appreciate the work done for this component, so thank you!
I found a positioning issue with a particular use case I have. I am prepending items to the masonry layout while maintaining the position/index of some existing items. I am not using the 'stamp' option of masonry in order to still utilize the layout/positioning logic for the 'stuck' items.
Here is a simplified example of the issue: https://codesandbox.io/s/m5888np119
If you click 'prepend' you will see the positioning issue. The turquoise item should be kept in place. I would like the end result for the example to look like this after prepending one item:
If a child of the masonry layout has an image, I have seen the issue be resolved most of the time by the
layout
call in the images loaded callback, but not always.Didn't see the need to prepend the new item(s) when items are already being reloaded before a layout call. Let me know what you think of the change. :)