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

Method updateScrollStrategy

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

Switches to a new scroll strategy.

(strategy: ScrollStrategy)

Source from the content-addressed store, hash-verified

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

Callers 1

overlay.spec.tsFile · 0.80

Calls 4

hasAttachedMethod · 0.95
attachMethod · 0.65
enableMethod · 0.45

Tested by

no test coverage detected