Skip to content

Commit

Permalink
chore(drawer): mark drawer container as scrollable (#7455)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto authored and kara committed Oct 3, 2017
1 parent 846cc13 commit b5310da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/sidenav/drawer-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

<ng-content select="mat-drawer-content">
</ng-content>
<mat-drawer-content *ngIf="!_content">
<mat-drawer-content *ngIf="!_content" cdkScrollable>
<ng-content></ng-content>
</mat-drawer-content>
2 changes: 1 addition & 1 deletion src/lib/sidenav/sidenav-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

<ng-content select="mat-sidenav-content">
</ng-content>
<mat-sidenav-content *ngIf="!_content">
<mat-sidenav-content *ngIf="!_content" cdkScrollable>
<ng-content></ng-content>
</mat-sidenav-content>
9 changes: 8 additions & 1 deletion src/lib/sidenav/sidenav-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ import {OverlayModule} from '@angular/cdk/overlay';
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MatCommonModule} from '@angular/material/core';
import {ScrollDispatchModule} from '@angular/cdk/scrolling';
import {MatDrawer, MatDrawerContainer, MatDrawerContent} from './drawer';
import {MatSidenav, MatSidenavContainer, MatSidenavContent} from './sidenav';


@NgModule({
imports: [CommonModule, MatCommonModule, A11yModule, OverlayModule],
imports: [
CommonModule,
MatCommonModule,
A11yModule,
OverlayModule,
ScrollDispatchModule,
],
exports: [
MatCommonModule,
MatDrawer,
Expand Down

0 comments on commit b5310da

Please sign in to comment.