FIX: Incorrect header offset calculation (#15341)

I somehow changed the sign before committing #15221 🤦
This commit is contained in:
Jarek Radosz 2021-12-17 02:46:31 +01:00 committed by GitHub
parent 2114dd53ef
commit 5eab90e0f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ const SiteHeaderComponent = MountWidget.extend(
let headerOffset = headerRect.top + headerRect.height;
if (window.scrollY < 0) {
headerOffset -= window.scrollY;
headerOffset += window.scrollY;
}
const newValue = `${headerOffset}px`;