Skip to content

Bug: Drag item is out of boundary element #16536

Closed
@NeoZhao-cn

Description

@NeoZhao-cn

Reproduction

Use StackBlitz to reproduce your issue:
https://stackblitz.com/edit/angular-fdjqyx

Steps to reproduce:

  1. create a cdkDrag item with a boundary element
  2. first, drag the item around
  3. then increase the drag item 's size dynamically( for example : click a button to change it's style.height and style.width)
  4. and then drag the item , it will be out of the boundary element

Expected Behavior

What behavior were you expecting to see?
resize the drag item then drag it, it should not be out of the boundary element

Actual Behavior

What behavior did you actually see?
the resized ckdDrag item will be out of the boundary element
1563286436273

Environment

  • Angular: 8.1.0
  • CDK/Material: 8.1.0
  • Browser(s): firefox ,chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions