Full-screen overlay container doesn't work when fullscreen element is within an overlay
- 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:
I believe this might be a bug.
In this example I try to load a snackbar into a container using the `viewContainerRef` config.
https://stackblitz.com/edit/angular-material-tooltip-in-container
#### What is the expected behavior?
The snackbar should align itself to the viewContainerRef that is provided.
#### What is the current behavior?
But the `_createOverlay` function does not look at this config and always creates the overlay using the `GlobalPositionStrategy` instead of `ConnectedPositionStrategy`.
There could be another root cause, and if there is please let me know.
#### What are the steps to reproduce?
I have provided a stackblitz above.
#### What is the use-case or motivation for changing an existing behavior?
There is a hand full of times i would like to load the snackbar in a container.
One in particular is the div has been maximized to full screen (so the window is not visible).
Therefore the snackbar is not visible.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
latest.
Guía de contribución
Línea de trabajo
Comienza con la reproducción vinculada de StackBlitz y el punto de entrada `_createOverlay`. Traza cómo se gestiona la configuración `viewContainerRef` del snackbar frente a las estrategias de posicionamiento global y conectado, y verifica después que un snackbar sea visible y esté alineado dentro de un contenedor de overlay a pantalla completa.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100