Skip to content
Snippets Groups Projects
Commit 78bca35a authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Merge branch 'app-shell-scroll-to-activity-top-when-switching-activities' into 'master'

Add scroll to top when switching activities (#37)

See merge request !10
parents aaefbeab 275bd827
No related branches found
No related tags found
1 merge request!10Add scroll to top when switching activities (#37)
Pipeline #14256 passed
......@@ -350,9 +350,13 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
}
let updateFunc = () => {
if (window.pageYOffset !== 0) {
window.scrollTo(0, 96);
}
this.updatePageTitle();
this.subtitle = this.activeMetaDataText("short_name");
this.description = this.activeMetaDataText("description");
};
// If it is empty assume the element is already registered through other means
......@@ -640,6 +644,8 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
ul.menu.hidden {
display: none;
}
}
`;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment