We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff34139 commit 03c8880Copy full SHA for 03c8880
src/furo/assets/scripts/furo.js
@@ -141,7 +141,8 @@ function setupScrollSpy() {
141
navClass: "scroll-current",
142
offset: () => {
143
let rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
144
- return header.getBoundingClientRect().height + 2.5 * rem + 1;
+ const headerRect = header.getBoundingClientRect();
145
+ return headerRect.top + headerRect.height + 2.5 * rem + 1;
146
},
147
});
148
}
0 commit comments