eiriklv / react-masonry-component

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

0px sized items when wrapped #100

Closed moimael closed 1 year ago

moimael commented 6 years ago

Wrapping react-masonry-component in a div causes the masonry grid to render with items having 0px height and width.

As soon as i remove the wrapping div everything works as intended.

Any workaround ?

Thanks !

afram commented 6 years ago

Hi @moimael Could you provide an example?

In this sample code react-masonry-component is wrapped by an outer DIV and it works fine - I'm need a bit more info about your specific use case :-)

https://www.webpackbin.com/bins/-KnBuUxuxu9B16Cr1ED5