The Drag element should be dragged inside cdkDragBoundary boundary even after resize the browser window.
Dragging area is less than cdkDragBoundary boundary
https://dragndrop-restrction.stackblitz.io/
Angular 7
CDK 7
Windows 10
TypeScript 3.1
IE11, Edge, Chrome 73, Firefox 66
The dragged item is responsive so it will change as per browser size
Hi team, any ETA
Hi
Is it going to be fixed any time soon?
Having this issue too.
@VigneshMadhavan @kadnova here is a workaround
First, you will have to observe any viewport changes or anything along those lines.. but after, you can do this
.....
@ViewChild(CdkDrag) cdkDrag: CdkDrag;
reset() {
this.cdkDrag._dragRef['_previewRect'] = undefined;
this.cdkDrag._dragRef['_boundaryRect'] = undefined;
}
....
Example here (click the reset button to get it to work again)
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
@VigneshMadhavan @kadnova here is a workaround
First, you will have to observe any viewport changes or anything along those lines.. but after, you can do this
Example here (click the reset button to get it to work again)
https://stackblitz.com/edit/dragndrop-restrction-tgh2ku