From 0b81601699fb23ede66fe2cfd7dad09d32a4675b Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Fri, 13 Aug 2021 17:46:24 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03913=20Allow=20iTop=20Hub=20iframe=20to?= =?UTF-8?q?=20fully=20display=20after=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/setup.css | 8 ++++++++ css/setup.scss | 8 ++++++++ setup/wizardsteps.class.inc.php | 6 +++--- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/css/setup.css b/css/setup.css index 1e3eb0737..ad8eac6b4 100644 --- a/css/setup.css +++ b/css/setup.css @@ -17747,3 +17747,11 @@ body { #installation_progress { display: none; } +#fresh_content { + border: 0; + min-height: 300px; + min-width: 600px; + display: none; + margin-left: auto; + margin-right: auto; +} diff --git a/css/setup.scss b/css/setup.scss index 256605168..399e2f862 100644 --- a/css/setup.scss +++ b/css/setup.scss @@ -634,3 +634,11 @@ body { #installation_progress { display: none; } + #fresh_content{ + border: 0; + min-height: 300px; + min-width: 600px; + display:none; + margin-left: auto; + margin-right: auto; + } diff --git a/setup/wizardsteps.class.inc.php b/setup/wizardsteps.class.inc.php index ef21fb802..ba73b4bcd 100644 --- a/setup/wizardsteps.class.inc.php +++ b/setup/wizardsteps.class.inc.php @@ -2575,12 +2575,12 @@ class WizStepDone extends WizardStep if ($sIframeUrl != '') { - $oPage->add(''); + $oPage->add(''); - $oPage->add_script("window.addEventListener('message', function(event) { + $oPage->add_script(" + window.addEventListener('message', function(event) { if (event.data === 'itophub_load_completed') { - $('#fresh_content').height($('#placeholder').height()); $('#placeholder').hide(); $('#fresh_content').show(); }