eiriklv / react-masonry-component

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

Children Resize #115

Closed amason0528 closed 3 years ago

amason0528 commented 6 years ago

I'm using this React-mansory-component library and it's very useful except one thing.

The height of my elements in the layout can be increased or decreased (It has edit button and if it is clicked, the edit form appears at the bottom of element)

In this case, Mansory changes the position of elements. I want to stop this.

Please let me know the solution for this.

afram commented 6 years ago

Have you tried the stamp method from Masonry?

Mike-Timms commented 5 years ago

I'm using this React-mansory-component library and it's very useful except one thing.

The height of my elements in the layout can be increased or decreased (It has edit button and if it is clicked, the edit form appears at the bottom of element)

In this case, Mansory changes the position of elements. I want to stop this.

Please let me know the solution for this.

Add the prop enableResizableChildren={true}.

<Masonry enableResizableChildren={true}></Masonry>