diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index 3049e7639..ca9622f43 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -141,6 +141,7 @@ class iTopWebPage extends NiceWebPage } }); + window.clearTimeout(iPaneVisWatchDog); myLayout.addPinBtn( "#tPinMenu", "west" ); //myLayout.open( "west" ); $('.ui-layout-resizer-west .ui-layout-toggler').css({background: 'transparent'}); @@ -391,6 +392,11 @@ EOF }); + + function FixPaneVis() + { + $('.ui-layout-center, .ui-layout-north, .ui-layout-south').css({display: 'block'}); + } EOF ); } @@ -562,7 +568,7 @@ EOF } $sHtml .= "\n"; } - $this->add_script("\$(document).ready(function() {\n{$this->m_sInitScript};\nwindow.setTimeout('onDelayedReady()',10)\n});"); + $this->add_script("var iPaneVisWatchDog = window.setTimeout('FixPaneVis()',5000);\n\$(document).ready(function() {\n{$this->m_sInitScript};\nwindow.setTimeout('onDelayedReady()',10)\n});"); if (count($this->m_aReadyScripts)>0) { $this->add_script("\nonDelayedReady = function() {\n".implode("\n", $this->m_aReadyScripts)."\n}\n"); diff --git a/css/light-grey.css b/css/light-grey.css index 40e635e5d..eecaab41a 100644 --- a/css/light-grey.css +++ b/css/light-grey.css @@ -8,6 +8,11 @@ body { overflow: hidden; /* Remove scroll bars on browser window */ } +/* to prevent flicker, hide the pane's content until it's ready */ +.ui-layout-center, .ui-layout-north, .ui-layout-south { + display: none; +} + .raw_output { font-family: Courier-New, Courier, Arial, Helvetica; font-size: 8pt;