* Subscribes to drawer events in order to set a class on the main container element when the * drawer is open and the backdrop is visible. This ensures any overflow on the container element * is properly hidden.
(drawer: MatDrawer)
| 962 | * is properly hidden. |
| 963 | */ |
| 964 | private _watchDrawerToggle(drawer: MatDrawer): void { |
| 965 | drawer._animationStarted.pipe(takeUntil(this._drawers.changes)).subscribe(() => { |
| 966 | this.updateContentMargins(); |
| 967 | this._changeDetectorRef.markForCheck(); |
| 968 | }); |
| 969 | |
| 970 | if (drawer.mode !== 'side') { |
| 971 | drawer.openedChange |
| 972 | .pipe(takeUntil(this._drawers.changes)) |
| 973 | .subscribe(() => this._setContainerClass(drawer.opened)); |
| 974 | } |
| 975 | } |
| 976 | |
| 977 | /** |
| 978 | * Subscribes to drawer onPositionChanged event in order to |
no test coverage detected