fix(drawer): invalid margin declaration when rendering server-side (#8324)

Fixes the margins of a drawer container being declared as `marginLeft` and `marginRight` when rendering on the server side.
This commit is contained in:
Kristiyan Kostadinov
2017-11-20 19:11:06 +01:00
committed by Jeremy Elbourn
parent bb504ad07b
commit 5600b80897
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -62,8 +62,8 @@ export class MatDrawerToggleResult {
template: '<ng-content></ng-content>',
host: {
'class': 'mat-drawer-content',
'[style.marginLeft.px]': '_margins.left',
'[style.marginRight.px]': '_margins.right',
'[style.margin-left.px]': '_margins.left',
'[style.margin-right.px]': '_margins.right',
},
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
+2 -2
View File
@@ -23,8 +23,8 @@ import {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion
template: '<ng-content></ng-content>',
host: {
'class': 'mat-drawer-content mat-sidenav-content',
'[style.marginLeft.px]': '_margins.left',
'[style.marginRight.px]': '_margins.right',
'[style.margin-left.px]': '_margins.left',
'[style.margin-right.px]': '_margins.right',
},
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,