mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
bb504ad07b
commit
5600b80897
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user