Skip to content

Commit 27c18d1

Browse files
authored
Fix user-guide layout bug (shader-slang#1821)
1 parent b5b2cda commit 27c18d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_layouts/user-guide.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@
146146
var rightColumn = document.getElementById("rightColumn");
147147
function updatePosition()
148148
{
149-
tocColumn.style.left = (rightColumn.getBoundingClientRect().x - tocColumn.getBoundingClientRect().width) + "px";
150149
if (window.innerWidth > 700)
151150
tocColumn.style.display = "";
151+
tocColumn.style.left = (rightColumn.getBoundingClientRect().x - tocColumn.getBoundingClientRect().width) + "px";
152152
}
153153
window.addEventListener("resize", updatePosition);
154154
updatePosition();

0 commit comments

Comments
 (0)