Skip to content

Commit

Permalink
Fixed header overlapping content (#1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNetcare authored Jul 7, 2024
1 parent a84b09f commit f2ad293
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/fitnesse/resources/bootstrap/templates/skeleton.vm
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,20 @@
</footer>
#end

<script>
function adjustPadding() {
if(document.querySelector('nav')) {
var navHeight = document.querySelector('nav').offsetHeight;
document.body.style.paddingTop = navHeight + 'px';
}
}

// Making sure the padding is correct when loading a page
window.onload = adjustPadding;

// Changing the padding when the window gets resized
window.onresize = adjustPadding;
</script>

</body>
</html>

0 comments on commit f2ad293

Please sign in to comment.