angular / angular/components

Sidenav: content area size not calculated properly with animation

Abierto
#9,837 9 comentarios 5 reacciones 0 asignados Ver en GitHub
area: material/sidenav 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:
Bug

#### What is the expected behavior?
The size of the content area is calculated correctly according to the width of the sidenav menu.

#### What is the current behavior?
The calculation is wrong. The margin-left value of the content area is inverted to the width defined in the animation.

#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-etpys5
(to see the issue you have to click a few times on the expand button)

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
@angular/material@5.2.0
@angular/cdk@5.2.0
@angular/core@5.2.4
@angular/animations@5.2.4

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comience reproduciendo el problema en el ejemplo de StackBlitz enlazado con el sidenav de Angular Material 5.2.0 y haciendo clic repetidamente en el botón expand. Siga la animación del sidenav y el cálculo del margen del área de contenido; después, verifique que el ancho y el margen del contenido sigan siendo correctos tras repetir varios ciclos de expand/collapse.

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
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.