Commit c476ac6f authored by Kenton Varda's avatar Kenton Varda

Fix sidebar in IE. Apparently it has been broken from day 1 and no one noticed or cared.

parent 29ab203a
......@@ -19,7 +19,10 @@ function initSidebar() {
document.body.className = "wide";
}
if (window.scrollY < 410 || window.innerHeight < menu.clientHeight + 100) {
var y = (window.pageYOffset !== undefined) ? window.pageYOffset :
(document.documentElement || document.body.parentNode || document.body).scrollTop;
if (y < 410 || window.innerHeight < menu.clientHeight + 100) {
menu.className = "";
} else {
menu.className = "floating";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment