Drag Drop: mat-grid-tile does not retain height when being dragged
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
#### 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?
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Problem im verknüpften StackBlitz mit dem mat-grid-list-Markup und einem verhältnisbasierten rowHeight zu reproduzieren. Untersuche die Interaktion zwischen mat-grid-tile und drag/drop während der Drag-Vorschau. Als abgeschlossen gilt die Aufgabe, wenn das gezogene Tile dasselbe Verhältnis von Höhe zu Breite wie das ursprüngliche Tile beibehält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100