CDK Overlay - Position Strategy with zoom css on parent
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
#### Bug, feature request, or proposal:
If you are using the `zoom` CSS property to scale down UI elements the positioning of the CDK Overlay are calculated incorrectly.
#### What is the expected behavior?
Overlay positions properly as the non-zoomed styled `div`
#### What is the current behavior?
Overlay positions are calculated incorrectly when the `zoom: 0.9` css property is on the parent container.
#### What are the steps to reproduce?
https://stackblitz.com/edit/cdk-overlay-zoom
#### What is the use-case or motivation for changing an existing behavior?
We have a Chrome only application that we use the `zoom` css property to scale down the UI. Using other methods of scaling does not work, so this is what we have to do.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular - 5.2.10
CDK - 5.2.5
Beitragsleitfaden
Rechercherichtung
Beginnen Sie mit der verknüpften StackBlitz-Reproduktion und vergleichen Sie die Platzierung des Overlays mit und ohne `zoom: 0.9` am übergeordneten Element. Verfolgen Sie den Einstiegspunkt der CDK Overlay-Positionierung und dessen Koordinatenberechnungen. Überprüfen Sie anschließend, dass das Overlay in der Reproduktion am nicht gezoomten Container ausgerichtet ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, css, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100