eiriklv / react-masonry-component

A React.js component for using @desandro's Masonry
MIT License
1.44k stars 145 forks source link

Masonry only aligns divs correctly after state change #2

Open jasecoop opened 9 years ago

jasecoop commented 9 years ago

Hi

I'm calculating the container and divs width and height before rendering masonry, but they only arrange correctly on a state change. Initially they're arranged stacked on top of eachother.

Is there any reason for this? Not sure if the fault lies with how I'm using React or Masonry atm.

eiriklv commented 9 years ago

Hey @jasecoop! Do you have an example/demo which produces this bug? :-)