re-resizable icon indicating copy to clipboard operation
re-resizable copied to clipboard

limit resize to parent div/container.

Open davvit opened this issue 6 years ago • 3 comments

question

no

Overview of the problem

I'm using re-resizable version [4.11.0]

My browser is: chrome

I am sure this issue is not a duplicate?

Description

How do I limit the resizable control to within a div parent? Currently, you can resize control outside the parent div container. We can test this on the nested story. the Inside resizable can be resized beyond the parent.

image

Im trying to make it live within the parent. not sure why i can drag this all over other divs... image

davvit avatar Dec 19 '18 21:12 davvit

This issue can be resolved by using property which specifies resize boundaries: bounds: 'parent'

By default it's set to bounds: 'window'

yastrebovb avatar Apr 21 '19 12:04 yastrebovb

I have tried using the bounds and it is not working.

krisfrenette avatar Jun 13 '19 01:06 krisfrenette

@davvit If you are Ok, please provide reproduced project with codesandbox

bokuweb avatar Jun 13 '19 03:06 bokuweb