feat(cdk/drag-drop): X and Y as percentage values instead of px
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### Feature Description
We are developing a mobile app in which users should be able to move elements back and forth in a certain area. The position of the elements should obviously be identical for every user. However, this does not work since each user has a different smartphone and therefore a different screen width, as cdk/drag-drop works with px values. One should be able to switch from px to % in order to ensure the correct position regardless of the screen resolution (or the width of the boundary element).
Beitragsleitfaden
Rechercherichtung
Beginne damit, die cdk/drag-drop-Implementierung zu lokalisieren, die X- und Y-Positionen speichert und anwendet, und untersuche anschließend ihr bestehendes pixelbasiertes Verhalten und die Tests. Lege fest, wie Prozentwerte akzeptiert und relativ zum Begrenzungselement umgerechnet werden sollen; abgeschlossen ist die Aufgabe, wenn die Positionen über verschiedene Breiten des Begrenzungselements hinweg konsistent bleiben und das Verhalten durch Tests abgedeckt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100