From 516e0a33db7b7bef58071ecf788e19d193466a7b Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Thu, 22 Nov 2018 18:47:50 -0300 Subject: [PATCH] Inside IFRAMES the onload event is reaised before the window has its real size. --- client/html/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/html/index.html b/client/html/index.html index 2c4729474..9089fbc22 100644 --- a/client/html/index.html +++ b/client/html/index.html @@ -32,7 +32,9 @@ context: {} }; - loadAdvancedAlgosPlatform(); + let delay = 0 + if (window.innerHeight === 0) {delay = 3000} // Inside IFRAMES the onload event is reaised before the window has its real size. + setTimeout(loadAdvancedAlgosPlatform, delay) } } function onResize(){