Drag Drop: mat-grid-tile does not retain height when being dragged
- 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?
When dragging an item in a list, element rendered next to the user's cursor should look exactly like the element that is being dragged.
#### What is the current behavior?
Height changes and becomes bigger when item is being dragged
#### What are the steps to reproduce?
I use Mat-Grid-List example available in the docs at https://stackblitz.com/angular/oegmxkolgyr?file=app%2Fgrid-list-overview-example.html
Just display it on one line because of "Drag Drop Sortable, mixed orientation support (#13372 )" bug and add drag/drop like this:
```
1
2
3
4
```

When rowHeight is set to a ratio, height of item being drag changes.
Any solution to keep height at correct ratio?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le problème dans le StackBlitz lié en utilisant le balisage mat-grid-list et un rowHeight basé sur un ratio. Examinez l’interaction entre mat-grid-tile et drag/drop pendant l’aperçu du glisser-déposer. Le travail est terminé lorsque la tuile déplacée conserve le même ratio hauteur-largeur que la tuile d’origine.
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é
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100