dantrain / react-stonecutter

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

Changing columnWidth prop doesn't cause rerender to UI #47

Closed OliverDudgeon closed 4 years ago

OliverDudgeon commented 4 years ago

I have a grid layout that recalculates the size of my grid items to take up the remaining space. Currently the CSSGrid component renders this correctly on the first render but when the columnWidth prop changes the grid does not update to respect this. Is there a way to get this to work or is it a limitation of stonecutter?

Thanks.

OliverDudgeon commented 4 years ago

Sorry I've worked this out now. Was a mistake leaving set width in from testing things.