-
Notifications
You must be signed in to change notification settings - Fork 6.8k
DragDropModule : Limit the draggable element stay in the bounds (of a container) #14211
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
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 22, 2018
Adds the `cdkDragBoundry` input that allow for people to constrain the dragging of an element to another element. Fixes angular#14211.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 22, 2018
Adds the `cdkDragBoundry` input that allow for people to constrain the dragging of an element to another element. Fixes angular#14211.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 23, 2018
Adds the `cdkDragBoundary` input that allows for people to constrain the dragging of an element to another element. Fixes angular#14211.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 23, 2018
Adds the `cdkDragBoundary` input that allows for people to constrain the dragging of an element to another element. Fixes angular#14211.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 30, 2018
Adds the `cdkDragBoundary` input that allows for people to constrain the dragging of an element to another element. Fixes angular#14211.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 30, 2018
Adds the `cdkDragBoundary` input that allows for people to constrain the dragging of an element to another element. Fixes angular#14211.
josephperrott
pushed a commit
to josephperrott/components
that referenced
this issue
Jan 14, 2019
…ngular#14242) Adds the `cdkDragBoundary` input that allows for people to constrain the dragging of an element to another element. Fixes angular#14211.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug, feature request, or proposal:
Feature request : Give the possibility to set a container as bounds.
What is the expected behavior?
The draggable element cannot be out of the bounds, even visually. It always stays inside the container and can be dropped everywhere inside the container.
( As in angular-draggable : https://xieziyu.github.io/angular2-draggable/#/draggable/usage/boundary )
What is the current behavior?
No such behavior
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
My draggable element is a modal window. We should be able to move the modal, but force it to stay inside the "body" container (for example).
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular Material 7
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: