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 3c2916d commit 55b2cb2Copy full SHA for 55b2cb2
scaladoc/resources/dotty_res/scripts/ux.js
@@ -500,3 +500,17 @@ function zoomOut() {
500
var svg = d3.select("#graph");
501
svg.transition().duration(2000).call(zoom.transform, transform);
502
}
503
+
504
505
+const members = [...document.querySelectorAll("[id]")];
506
+members.forEach((member) => {
507
+ window.addEventListener("resize", () => {
508
+ const navbarHeight = document.querySelector("#header").clientHeight;
509
+ const filtersHeight = document.querySelector(
510
+ ".documentableFilter",
511
+ ).clientHeight;
512
+ member.style.scrollMarginTop = `${navbarHeight + filtersHeight}px`;
513
+ console.log(member.style.scrollMarginTop);
514
+ });
515
516
+});
0 commit comments