-
-
Notifications
You must be signed in to change notification settings - Fork 69
Bounds in container doesn't seem to apply #168
Comments
I'm also having this issue.. I have a hacky workaround of measuring the top/left of the container and manually setting bounds equal to the container bounding box, but this doesn't work if the page changes in layout above the container (and throws the position of the container off from initial page load) Any help would be greatly appreciated! |
AFAICS, the Any suggestions on how to pass something useful to the |
@josvos @liveclickermike rollback to a older version is a workaround for now, |
FWIW: I use a local copy now, in which I added a prop |
Hi, I'm starting to play with Vue Moveable and I'm trying to get the moveable to stay inside its container. I've set, draggable, dragArea, and snappable to the demo sandbox according to the docs. I have added a
:container="$refs.container"
to specify the container and set styles on the container and then try to set bounds.The object can still be moved outside the container and the bounds seem to only apply to the document body and not the container. Shouldn't the bounds apply to the reference container or am I misunderstanding how this should work?
Here is a CodeSandbox with the issue. If the container is set, shouldn't the bounds apply to the container so that the moveable should be kept within the green box container?
Thank you for any help!
The text was updated successfully, but these errors were encountered: