angular / angular/components

[Drag and drop] problems when changing height after start

Ouverte
#14,703 33 commentaires 6 réactions 0 personnes assignées Voir sur GitHub
area: cdk/drag-drop P2
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

#### What is the expected behavior?
Drag and drop working :)

#### What is the current behavior?
If I change the height of elements (that are draggable) for example by hiding some elements **after I start dragging**, the drag and drop mechanism thinks the items are still the original height (and therefore rendering placeholder at wrong place and behaving incorrectly).

#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-ggdtyr?file=app%2Fapp.component.css

(moving between columns does not work for some unknown reason but that is not important)

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

#### Is there anything else we should know?
If you point me in the right direction, I can provide a fix.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la reproduction StackBlitz liée, en particulier app/app.component.css, et reproduisez un changement de hauteur après le début du glissement. Suivez le point d’entrée Angular du glisser-déposer afin de déterminer où les dimensions obsolètes de l’élément affectent le positionnement de l’espace réservé. La tâche est terminée lorsque l’espace réservé et le comportement de glissement restent corrects lorsque la hauteur des éléments déplaçables change pendant un glissement.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.