mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
N°3913 Allow iTop Hub iframe to fully display after setup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user