MCPcopy
hub / github.com/angular/components / updateScrollStrategy

Method updateScrollStrategy

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

Switches to a new scroll strategy.

(strategy: ScrollStrategy)

Source from the content-addressed store, hash-verified

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

Callers 1

overlay.spec.tsFile · 0.80

Calls 4

hasAttachedMethod · 0.95
attachMethod · 0.65
enableMethod · 0.45

Tested by

no test coverage detected