paulcollett / react-masonry-css

React Masonry layout component powered by CSS, dependancy free
https://paulcollett.github.io/react-masonry-css/demo/
MIT License
961 stars 66 forks source link

css, incorrect column count with few items #4

Closed paulcollett closed 7 years ago

paulcollett commented 7 years ago

due to using flex: 1 to set column width, when there are less items than specified columns, the rendered column count will be off.

eg. 3 specifed columns with only 2 items will result in only 2 columns