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 @@ -155,6 +155,17 @@ $mat-drawer-over-drawer-z-index: 4;
155
155
}
156
156
}
157
157
158
+ // Note that this div isn't strictly necessary on all browsers, however we need it in
159
+ // order to avoid a layout issue in Chrome. The issue is that in RTL mode the browser doesn't
160
+ // account for the sidenav's scrollbar while positioning, which ends up pushing it partially
161
+ // out of the screen. We work around the issue by having the scrollbar be on this inner container.
162
+ .mat-drawer-inner-container {
163
+ width : 100% ;
164
+ height : 100% ;
165
+ overflow : auto ;
166
+ -webkit-overflow-scrolling : touch ;
167
+ }
168
+
158
169
.mat-sidenav-fixed {
159
170
position : fixed ;
160
171
}
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export class MatDrawerContent extends CdkScrollable implements AfterContentInit
100
100
moduleId : module . id ,
101
101
selector : 'mat-drawer' ,
102
102
exportAs : 'matDrawer' ,
103
- template : '<ng-content></ng-content> ' ,
103
+ templateUrl : 'drawer.html ' ,
104
104
animations : [ matDrawerAnimations . transformDrawer ] ,
105
105
host : {
106
106
'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