Skip to content

Commit

Permalink
Merge pull request #575 from amelioro/fix-header-cut-off
Browse files Browse the repository at this point in the history
fix: header cut off
  • Loading branch information
keyserj authored Nov 25, 2024
2 parents 68674a0 + 00dbe1f commit 3ac177f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/topic/utils/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ div.style.fontSize = "16px";
div.style.lineHeight = "1";
div.style.fontFamily = "inherit";
div.style.overflow = "hidden";
div.style.visibility = "hidden";
div.style.visibility = "hidden"; // don't show in DOM but still be added to it so height calcs work
div.style.position = "absolute"; // don't affect layout (visibility: hidden otherwise still affects layout)
div.tabIndex = -1;
div.ariaHidden = "true";
document.body.appendChild(div);
Expand Down

0 comments on commit 3ac177f

Please sign in to comment.