Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
78bca35a
Commit
78bca35a
authored
4 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Plain Diff
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
Branches containing commit
No related tags found
1 merge request
!10
Add scroll to top when switching activities (#37)
Pipeline
#14256
passed
4 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/app-shell/src/app-shell.js
+6
-0
6 additions, 0 deletions
packages/app-shell/src/app-shell.js
with
6 additions
and
0 deletions
packages/app-shell/src/app-shell.js
+
6
−
0
View file @
78bca35a
...
...
@@ -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;
}
}
`
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment