RowHeight and Container Height "auto" or "%"
ronaldux opened this issue · comments
Ronald Urbina commented
We need to make it responsive and now these properties are just in number, I need to set it to auto to calculate rowHeight and container height.
Gabriel Alcântara Bernardes commented
I had to do some calc to present the right amount of items per row;
const MAX_ITEM_WIDTH = 350 // your div
const ITEMS_PER_ROW = Math.ceil(window.innerWidth / MAX_ITEM_WIDTH) // boxesPerRow
Steingrímur Árnason commented
Fantastic. Works great. Just need to subscribe to the window resize event as well.
Would be great if the component had this automatically.
Gagandeep Guru commented
Hi, @ronaldux, did you find any solution that how to make the rowHeight to auto?