Skip to content
Snippets Groups Projects
Commit 993fcbf4 authored by Tögl, Christina's avatar Tögl, Christina
Browse files

Fix top value max position

parent 993a9fc8
No related branches found
No related tags found
1 merge request!12Add scrollbar to menu if necessary
Pipeline #14694 failed
......@@ -420,7 +420,7 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
let topValue = 45.5;
// if menu is not in sticky position the top value must be calculated
if (window.pageYOffset < 96) {
topValue = 142.5 - window.pageYOffset;
topValue = 141.5 - window.pageYOffset;
}
menu.setAttribute('style', 'position: fixed;top: ' + topValue + 'px;bottom: 0;border-bottom: 0;');
menu.scrollTop = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment