CDK Overlay - Position Strategy with zoom css on parent
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
#### 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
Guía de contribución
Línea de trabajo
Comienza con la reproducción vinculada de StackBlitz y compara la colocación del overlay con y sin `zoom: 0.9` en el elemento padre. Sigue el punto de entrada del posicionamiento de CDK Overlay y sus cálculos de coordenadas; después, verifica que el overlay se alinee con el contenedor sin zoom en la reproducción.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, css, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100