Updates the position of the current tooltip.
(overlayRef: OverlayRef)
| 594 | |
| 595 | /** Updates the position of the current tooltip. */ |
| 596 | private _updatePosition(overlayRef: OverlayRef) { |
| 597 | const position = overlayRef.getConfig().positionStrategy as FlexibleConnectedPositionStrategy; |
| 598 | const origin = this._getOrigin(); |
| 599 | const overlay = this._getOverlayPosition(); |
| 600 | |
| 601 | position.withPositions([ |
| 602 | this._addOffset({...origin.main, ...overlay.main}), |
| 603 | this._addOffset({...origin.fallback, ...overlay.fallback}), |
| 604 | ]); |
| 605 | } |
| 606 | |
| 607 | /** Adds the configured offset to a position. Used as a hook for child classes. */ |
| 608 | protected _addOffset(position: ConnectedPosition): ConnectedPosition { |
no test coverage detected