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

Method _getScrollTop

src/material/autocomplete/autocomplete.ts:291–293  ·  view source on GitHub ↗

Returns the panel's scrollTop.

()

Source from the content-addressed store, hash-verified

289
290 /** Returns the panel's scrollTop. */
291 _getScrollTop(): number {
292 return this.panel ? this.panel.nativeElement.scrollTop : 0;
293 }
294
295 /** Panel should hide itself when the option list is empty. */
296 _setVisibility() {

Callers 1

_scrollToOptionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected