Switches to a new scroll strategy.
(strategy: ScrollStrategy)
| 397 | |
| 398 | /** Switches to a new scroll strategy. */ |
| 399 | updateScrollStrategy(strategy: ScrollStrategy): void { |
| 400 | if (strategy === this._scrollStrategy) { |
| 401 | return; |
| 402 | } |
| 403 | |
| 404 | this._disposeScrollStrategy(); |
| 405 | this._scrollStrategy = strategy; |
| 406 | |
| 407 | if (this.hasAttached()) { |
| 408 | strategy.attach(this); |
| 409 | strategy.enable(); |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | /** Updates the text direction of the overlay panel. */ |
| 414 | private _updateElementDirection() { |
no test coverage detected