N°3913 Allow iTop Hub iframe to fully display after setup

This commit is contained in:
Stephen Abello
2021-08-13 17:46:24 +02:00
parent 4d3ba6edd0
commit 0b81601699
3 changed files with 19 additions and 3 deletions

View File

@@ -2575,12 +2575,12 @@ class WizStepDone extends WizardStep
if ($sIframeUrl != '')
{
$oPage->add('<iframe id="fresh_content" style="border:0; width:100%; display:none;" src="'.$sIframeUrl.'"></iframe>');
$oPage->add('<iframe id="fresh_content" frameborder="0" scrolling="auto" src="'.$sIframeUrl.'"></iframe>');
$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();
}