-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resize bounds on a draggable element inside a containment is off. #100
Comments
@aviad123 |
The same situation for me. Containment doesn't work correct with ngDraggable and ngResizable. |
Is there any timeline as to when this will be fixed? |
@aviad123 @miikkikiikki @smaranh |
@xieziyu Thanks for such a quick fix but I found another issue. Not sure if this is only happening to me. The first time I click on the DragHandle or the Resize handle in the bottom right, the component jumps and tries to snap to the edge of the container inside which it is contained. Any idea why this is? This only happens for draggable if This only happens the first time and after that, it works properly. I will post a gif soon. |
@xieziyu Here is the gif |
@smaranh |
@xieziyu I finally figured out why the jump is happening. If you have the resizable or draggable container with https://stackblitz.com/edit/angular-cli-esri-map2-qyyzpu?file=src/app/app.component.html Do you think I should close this issue and create a new one for this? |
@smaranh I found that the issue came out because your The reason is that the draggable and resizable directives need to calculate the position inside the containment, which requires the containment not |
Thanks @xieziyu you are a life saver |
When adding ngDraggable to a resizable div with a containment, after moving the div the resize bounds are off (goes outside the containment).
The text was updated successfully, but these errors were encountered: