| 69 | private _afterNextRenderRef: AfterRenderRef | undefined; |
| 70 | |
| 71 | constructor( |
| 72 | private _portalOutlet: PortalOutlet, |
| 73 | private _host: HTMLElement, |
| 74 | private _pane: HTMLElement, |
| 75 | private _config: ImmutableObject<OverlayConfig>, |
| 76 | private _ngZone: NgZone, |
| 77 | private _keyboardDispatcher: OverlayKeyboardDispatcher, |
| 78 | private _document: Document, |
| 79 | private _location: Location, |
| 80 | private _outsideClickDispatcher: OverlayOutsideClickDispatcher, |
| 81 | private _animationsDisabled = false, |
| 82 | private _injector: EnvironmentInjector, |
| 83 | private _renderer: Renderer2, |
| 84 | ) { |
| 85 | if (_config.scrollStrategy) { |
| 86 | this._scrollStrategy = _config.scrollStrategy; |
| 87 | this._scrollStrategy.attach(this); |
| 88 | } |
| 89 | |
| 90 | this._positionStrategy = _config.positionStrategy; |
| 91 | } |
| 92 | |
| 93 | /** The overlay's HTML element */ |
| 94 | get overlayElement(): HTMLElement { |