Switches to a new scroll strategy.
(strategy: ScrollStrategy)
| 387 | |
| 388 | /** Switches to a new scroll strategy. */ |
| 389 | updateScrollStrategy(strategy: ScrollStrategy): void { |
| 390 | if (strategy === this._scrollStrategy) { |
| 391 | return; |
| 392 | } |
| 393 | |
| 394 | this._disposeScrollStrategy(); |
| 395 | this._scrollStrategy = strategy; |
| 396 | |
| 397 | if (this.hasAttached()) { |
| 398 | strategy.attach(this); |
| 399 | strategy.enable(); |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | /** Updates the text direction of the overlay panel. */ |
| 404 | private _updateElementDirection() { |
no test coverage detected