react-rnd
react-rnd copied to clipboard
Allow programable bounds property.
Allow programable bounds linke, bounds={ top: 0, left: 0, right: 100, bottom: 100}.
related #209
Overview of the problem
I'm using react-rnd version [x.x.x]
My browser is:
I am sure this issue is not a duplicate?
Reproduced project
https://codesandbox.io/s/y3997qply9
Description
Steps to Reproduce
- First Step
- Second Step
- and so on...
Expected behavior
Actual behavior
Personal need: e.g. bounds={ top: 10, left: 10, right: 10, bottom: 10}
- These coords are related to parent div
- component with x=0 and y=0 still means it would touch top left corner (no margin)
- but component can't be at 0,0 because of bounds, so it would be block at 10,10.
Is that what you have in mind too?
This would be great. I'm trying to use bounds in an iframe and things don't seem to be working even if specifying a window and document object.