Merged in gproly/processmaker/HOR-348 (pull request #3785)

HOR-348
This commit is contained in:
Julio Cesar Laura Avendaño
2016-03-04 10:18:52 -04:00

View File

@@ -1,47 +1,43 @@
<body onresize="autoResizeScreen()" onload="autoResizeScreen()"> <body onresize="autoResizeScreen()" onload="autoResizeScreen()">
<style type="text/css"> <style type="text/css">
*html body { *html body {
overflow-y: hidden; overflow-y: hidden;
} }
</style> </style>
<iframe name="adminFrame" id="adminFrame" src ="main_init" width="99%" height="768" frameborder="0"> <iframe name="adminFrame" id="adminFrame" src ="main_init" width="99%" height="768" frameborder="0">
<p>Your browser does not support iframes.</p> <p>Your browser does not support iframes.</p>
</iframe> </iframe>
</body> </body>
<script> <script>
oClientWinSize = getClientWindowSize(); if (document.getElementById('pm_submenu'))
if ( document.getElementById('pm_submenu') ) document.getElementById('pm_submenu').style.display = 'none';
document.getElementById('pm_submenu').style.display = 'none'; document.documentElement.style.overflowY = 'hidden';
document.documentElement.style.overflowY = 'hidden';
function autoResizeScreen() {
var containerList1, containerList2;
oCasesFrame = document.getElementById('adminFrame');
containerList1 = document.getElementById("pm_header");
if (document.getElementById("mainMenuBG") &&
document.getElementById("mainMenuBG").parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode){
containerList2 = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
}
if (containerList1 === containerList2) {
height = oClientWinSize.height - containerList1.clientHeight;
oCasesFrame.style.height = height;
if (oCasesFrame.height ) {
oCasesFrame.height = height;
}
} else {
oClientWinSize = getClientWindowSize();
height = oClientWinSize.height-90;
oCasesFrame.style.height = height;
oCasesSubFrame = oCasesFrame.contentWindow.document.getElementById('setup-frame');
if(oCasesSubFrame) function autoResizeScreen() {
oCasesSubFrame.style.height = height-5; var pmHeader, container, adminFrame, height, setupFrame, factor;
else adminFrame = document.getElementById('adminFrame');
setTimeout('autoResizeScreen()', 2000); pmHeader = document.getElementById("pm_header");
} if (document.getElementById("mainMenuBG") &&
} document.getElementById("mainMenuBG").parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode) {
container = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
}
if (pmHeader === container) {
factor = pmHeader.clientHeight;
} else {
factor = 90;
}
height = getClientWindowSize().height - factor;
adminFrame.style.height = height + 'px';
if (adminFrame.height) {
adminFrame.height = height + 'px';
}
setupFrame = adminFrame.contentWindow.document.getElementById('setup-frame');
if (setupFrame) {
setupFrame.style.height = (height - 5) + 'px';
}
}
</script> </script>
</html> </html>