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

Is there any way to set bounds to when some Rnd component reaches another Rnd component borders?

Open arthurepc opened this issue 6 years ago • 2 comments

I have two Rnd components juxtaposed to each other and I want to change one's width when the other is resized, but I don't want to let it overlap completely its neighbour. Is there any way of doing it with bounds props or someone already did it in an easier way?

arthurepc avatar Feb 04 '19 17:02 arthurepc

Please see: #590

pixelass avatar Sep 11 '19 13:09 pixelass

@arthurepc Take a look at my example here. You can customize it for resize event as it only detects a collision of two elements. Then you can adjust elements with REF.current.updateSize();.

radosek avatar Jul 20 '22 07:07 radosek