react-rnd
react-rnd copied to clipboard
How to set maxWidth and maxHeight dynamically depending on resize direction
I'm using react-rnd.
I am developing a dashboard layout using react-rnd. I've specified grid size and it's working perfectly for resize and drag. If the grid is somewhere in the middle, i want different maxWidth and maxHeight depending on which direction I'm resizing, because of the size limit of the dashboard.
How can I achieve this using react-rnd features? I tried changing maxWidth using react state upon resizing, but maxWidth didn't change.
i have the same Problem. i have try to set a local maxWidth state onResize. But i can't change the maxWidth state while resizing the box.
@nanda248 do you find any solution?