eiriklv / react-masonry-component

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

Reordering when resizing masonry child #133

Open dusanstojanovic opened 6 years ago

dusanstojanovic commented 6 years ago

I have a problem with this situation:

waaaait

Any ideas how to accomplish this? I need to reorder all the elements every time textarea grows (I'm using material-ui.com)

afram commented 6 years ago

Hi @dusanstojanovic

You will probably want to access the masonry object and call layout yourself in this instance. https://masonry.desandro.com/methods.html#layout-masonry

Here's an example https://codesandbox.io/s/v3y4o3nx70