reactjs - Packery layout is not working as expected in meteor with react -



using packery layout layouting several items. working fine in initial mode, when create new item, newly created item overlap first item, , when refresh page, working fine.
here code sample using while item rendered ..

    componentdidmount(){                 $('#packery-layout').packery({             itemselector: '.item',             gutter: 10         });     }     componentdidupdate(){         $('#packery-layout').packery({             itemselector: '.item',             gutter: 10         });     } 

what want that, when create new design, newly created design should not overlapped first item.

clue/solution issue ?

thanks.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -