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

Method _setScrollTop

src/material/autocomplete/autocomplete.ts:284–288  ·  view source on GitHub ↗

* Sets the panel scrollTop. This allows us to manually scroll to display options * above or below the fold, as they are not actually being focused when active.

(scrollTop: number)

Source from the content-addressed store, hash-verified

282 * above or below the fold, as they are not actually being focused when active.
283 */
284 _setScrollTop(scrollTop: number): void {
285 if (this.panel) {
286 this.panel.nativeElement.scrollTop = scrollTop;
287 }
288 }
289
290 /** Returns the panel's scrollTop. */
291 _getScrollTop(): number {

Callers 1

_scrollToOptionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected