Skip to content

angular/cdk/drag-drop incorrect horizontal multi row layout  #13506

@jendaneu1

Description

@jendaneu1

Bug, feature request, or proposal:

Horizontal sortable does not work when using more rows of sortable items.

What is the expected behavior?

It should behave correctly when specified flex-wrap: wrap on the container.

What is the current behavior?

The items are not sorted in correct way and some unexpected drop zones or empty spaces are shown

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

Just look at this example: https://stackblitz.com/angular/gxaxdlegndb?file=app%2Fcdk-drag-drop-horizontal-sorting-example.ts and set flex-wrap: wrap on the list class.

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions