From 15bc6c1d736160b065519edc87ec33e7c0cf5fd3 Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Mon, 20 Nov 2017 17:21:46 +0100
Subject: [PATCH] Fix idiot chromium being unable to figure out window size
 while loading guide

---
 Resources/Guide/script.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Resources/Guide/script.js b/Resources/Guide/script.js
index f9649a06..517a5601 100644
--- a/Resources/Guide/script.js
+++ b/Resources/Guide/script.js
@@ -72,6 +72,15 @@ var init = function(){
     if (element && element.tagName === "SUMMARY"){
       element.click();
       element.scrollIntoView(true);
+      
+      if (window.innerWidth === 0){
+        var ffs = function(){
+          element.scrollIntoView(true);
+          window.removeEventListener("resize", ffs);
+        };
+        
+        window.addEventListener("resize", ffs);
+      }
     }
   }
 };