MCPcopy Create free account
hub / github.com/angular/components / updateScrollStrategy

Method updateScrollStrategy

src/cdk/overlay/overlay-ref.ts:399–411  ·  view source on GitHub ↗

Switches to a new scroll strategy.

(strategy: ScrollStrategy)

Source from the content-addressed store, hash-verified

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() {

Callers 1

overlay.spec.tsFile · 0.80

Calls 4

hasAttachedMethod · 0.95
attachMethod · 0.65
enableMethod · 0.45

Tested by

no test coverage detected