Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ resetScrollPosition
Function
resetScrollPosition
docs/src/app/material-docs-app.ts:83–90 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
81
}
82
83
function
resetScrollPosition() {
84
if
(typeof document ===
'object'
&& document) {
85
const
sidenavContent = document.querySelector(
'.mat-drawer-content'
);
86
if
(sidenavContent) {
87
sidenavContent.scrollTop = 0;
88
}
89
}
90
}
Callers
1
constructor
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected