File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ < div class ="mat-drawer-inner-container ">
2
+ < ng-content > </ ng-content >
3
+ </ div >
Original file line number Diff line number Diff line change @@ -162,6 +162,17 @@ $mat-drawer-over-drawer-z-index: 4;
162
162
}
163
163
}
164
164
165
+ // Note that this div isn't strictly necessary on all browsers, however we need it in
166
+ // order to avoid a layout issue in Chrome. The issue is that in RTL mode the browser doesn't
167
+ // account for the sidenav's scrollbar while positioning, which ends up pushing it partially
168
+ // out of the screen. We work around the issue by having the scrollbar be on this inner container.
169
+ .mat-drawer-inner-container {
170
+ width : 100% ;
171
+ height : 100% ;
172
+ overflow : auto ;
173
+ -webkit-overflow-scrolling : touch ;
174
+ }
175
+
165
176
.mat-sidenav-fixed {
166
177
position : fixed ;
167
178
}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export class MatDrawerContent extends CdkScrollable implements AfterContentInit
103
103
moduleId : module . id ,
104
104
selector : 'mat-drawer' ,
105
105
exportAs : 'matDrawer' ,
106
- template : '<ng-content></ng-content> ' ,
106
+ templateUrl : 'drawer.html ' ,
107
107
animations : [ matDrawerAnimations . transformDrawer ] ,
108
108
host : {
109
109
'class' : 'mat-drawer' ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export class MatSidenavContent extends MatDrawerContent {
54
54
moduleId : module . id ,
55
55
selector : 'mat-sidenav' ,
56
56
exportAs : 'matSidenav' ,
57
- template : '<ng-content></ng-content> ' ,
57
+ templateUrl : 'drawer.html ' ,
58
58
animations : [ matDrawerAnimations . transformDrawer ] ,
59
59
host : {
60
60
'class' : 'mat-drawer mat-sidenav' ,
You can’t perform that action at this time.
0 commit comments