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

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

ruby on rails - ActiveRecord order not working -