Skip to content

Hidden Sidenav with side mode does not display properly when removing display none #10919

@mmercure

Description

@mmercure

Bug, feature request, or proposal:

Bug
Sidenav mode 'side' not working when the sidenav-container is initially 'display: none', and then visible.

What is the expected behavior?

the sidenav-content should be displayed completely, not behind the sidenav.

What is the current behavior?

the sidenav-content is behind the siednav, it does not have margin applied.

What are the steps to reproduce?

StackBlitz repro
Simply click on button "Hide/Display SideNav Container"
the sidenav-container will appear with the issue.
using the toggle sidenav button will fix the issue

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

I'm using 5.2.4 but issue still in latest.

Is there anything else we should know?

Issue also occurs if the display none is set on a parent of mat-sidenav-container.

A workaround would be helpfull!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions