fix cdk scrollable sidenav (#3204)

This commit is contained in:
Eugenio Romano
2018-04-16 22:42:22 +01:00
committed by GitHub
parent 2aafecd752
commit c8cbc8d645
4 changed files with 14 additions and 7 deletions

View File

@@ -7,7 +7,9 @@
<ng-content sidenav select="[app-layout-navigation]"></ng-content>
</mat-sidenav>
<mat-sidenav-content [@contentAnimation]="contentAnimationState">
<ng-content select="[app-layout-content]"></ng-content>
</mat-sidenav-content>
<div>
<div [@contentAnimation]="contentAnimationState" style="margin-left: 0 !important">
<ng-content select="[app-layout-content]"></ng-content>
</div>
</div>
</mat-sidenav-container>

View File

@@ -30,6 +30,11 @@ ng-content {
overflow: hidden;
}
:host ::ng-deep mat-sidenav-content{
margin-left:0px !important;
}
.mat-sidenav-content,
.mat-drawer-transition .mat-drawer-content {
transform: unset !important;