twils0/react-virtual-draggable-grid

How to fix the dimensions of the virtual grid?

nitesh619 opened this issue · 2 comments

Hello,

We have a requirement of having a grid of fixed number of columns. But apparently, with the current grid features/properties, it's not possible. Every time someone drags an item to any row, then that row expands horizontally to make space for the item and a scrollbar appears when after expanding it.

Please help me to fix the dimensions of the grid. Is there any property which we can use to achieve this? kindly help!

Thanks
Nitesh Jain

This behavior is currently expected. You are the second person to request this feature. I'll start work on it immediately.

I need to look into it more, but if it's feasible, I'll likely add an option for row and column limits, so you would be able to prevent users from dragging past X number of columns and Y number of rows.

Sorry for the extreme delay. I'm trying to find more time to work on this project. I just added rowLimit and columnLimit props. Your problem should be solved with the addition of these props.

Please update to version: 0.9.1-beta