Switches to a new scroll strategy.
(strategy: ScrollStrategy)
| 414 | |
| 415 | /** Switches to a new scroll strategy. */ |
| 416 | updateScrollStrategy(strategy: ScrollStrategy): void { |
| 417 | if (strategy === this._scrollStrategy) { |
| 418 | return; |
| 419 | } |
| 420 | |
| 421 | this._disposeScrollStrategy(); |
| 422 | this._scrollStrategy = strategy; |
| 423 | |
| 424 | if (this.hasAttached()) { |
| 425 | strategy.attach(this); |
| 426 | strategy.enable(); |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | /** Updates the text direction of the overlay panel. */ |
| 431 | private _updateElementDirection() { |
no test coverage detected