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