react-rnd icon indicating copy to clipboard operation
react-rnd copied to clipboard

How to set maxWidth and maxHeight dynamically depending on resize direction

Open nanda248 opened this issue 4 years ago • 1 comments

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.

nanda248 avatar Jan 16 '20 03:01 nanda248

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?

jan-runkel-zeitgleich avatar Sep 01 '21 13:09 jan-runkel-zeitgleich