angular / angular/components

Dialogue - overflow scrolling on small screens and margins

Abierto
#2,481 23 comentarios 2 reacciones 0 asignados Ver en GitHub
area: material/dialog P3
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:
The current dialogue does not seem to support sizing and scrolling on smaller screen sizes / small devices. This was possible on the material 1 dialogue. If the vertical height of the screen was incredibly small scrollbars would appear see this screenshot:

![image](https://cloud.githubusercontent.com/assets/3189206/21576606/02e52fc4-cf3f-11e6-8716-0388d1e954fe.png)

With version 2 - the dialogue is pushed off the screen and no scrollbars ever appear in the middle. It does not maintain any margins on the top or bottom.

![image](https://cloud.githubusercontent.com/assets/3189206/21576657/b833cf10-cf40-11e6-9f68-856fb744545e.png)

Maybe there is this a means this can be achieved but the examples are quite primitive.

#### What is the expected behavior?
When screen is decreased in size scrollbars should appear for the content.

#### What is the current behavior?
The current dialogue is pushed off the screen with no margin at the top or bottom. The content remains the same size

#### What are the steps to reproduce?

Providing a Plunker (or similar) is the *best* way to get the team to see your issue.
https://plnkr.co/edit/DrI42Su0v6OntJkjUNOI?p=preview

#### What is the use-case or motivation for changing an existing behavior?
The current modal is only useful for very simple use cases.

#### Which versions of Angular, Material, OS, browsers are affected?
Latest.

#### Is there anything else we should know?

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con la reproducción vinculada en Plunker e inspecciona el comportamiento del diálogo de Angular Material con alturas de viewport pequeñas. Compara la versión actual con el comportamiento de Material 1 descrito, centrándote en los márgenes verticales y en el desbordamiento del contenido. Se considera terminado cuando el diálogo permanece dentro del viewport y su contenido se vuelve desplazable cuando la pantalla es demasiado baja.

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
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.