diff --git a/doc/langref.html.in b/doc/langref.html.in
index 9aa106fb54..3515875c87 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -85,7 +85,6 @@
#main-wrapper {
display: flex;
flex-direction: column;
- height: 100vh;
}
#contents-wrapper {
@@ -106,6 +105,11 @@
#main-wrapper {
flex-direction: row;
}
+ #toc {
+ height: 100vh;
+ position: sticky;
+ top: 0;
+ }
#contents-wrapper, #toc {
overflow: auto;
}