dantrain / react-stonecutter

Animated grid layout component for React
http://dantrain.github.io/react-stonecutter
MIT License
1.21k stars 72 forks source link

Dynamic height calculation not working properly when images are getting loaded #23

Closed mkliu closed 7 years ago

mkliu commented 7 years ago

If it's a new image getting loaded, the calculation is wrong and panels are overlaying cross each other, any suggestions?

mkliu commented 7 years ago

Any way I could force to recalculate height?

dantrain commented 7 years ago

Hey, what's the use case exactly? { measureImages: true } is meant to wait for images to load before doing the measurement. Are you adding a new image to an existing grid item after it's already been measured and laid out?

mkliu commented 7 years ago

aha! I missed that config! Sorry I didn't see it. I even ended up implementing the same thing myself.