PM-3346: The auto resize method was updated and now is equal to the Cases List module.
Cases list auto resize method has been replicated in mainLoad.php file. With this change the problem was already solved.
This commit is contained in:
@@ -25,15 +25,21 @@
|
||||
document.getElementById('pm_submenu').style.display = 'none';
|
||||
document.documentElement.style.overflowY = 'hidden';
|
||||
function autoResizeScreen() {
|
||||
var containerList1, containerList2;
|
||||
var containerList1,
|
||||
containerList2,
|
||||
oCasesFrame,
|
||||
oClientWinSize,
|
||||
height,
|
||||
oCasesSubFrame;
|
||||
oCasesFrame = document.getElementById('frameMain');
|
||||
oClientWinSize = getClientWindowSize();
|
||||
|
||||
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
|
||||
){
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode){
|
||||
containerList2 = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
|
||||
}
|
||||
if (containerList1 === containerList2) {
|
||||
@@ -43,16 +49,15 @@
|
||||
oCasesFrame.height = height;
|
||||
}
|
||||
} else {
|
||||
oCasesFrame = document.getElementById('frameMain');
|
||||
oClientWinSize = getClientWindowSize();
|
||||
height = oClientWinSize.height-105;
|
||||
oCasesFrame.style.height = height;
|
||||
if (oCasesFrame.height ) {
|
||||
oCasesFrame.height = height;
|
||||
height = getClientWindowSize().height-90;
|
||||
oCasesFrame.style.height = height + 'px';
|
||||
oCasesSubFrame = oCasesFrame.contentWindow.document.getElementById('casesSubFrame');
|
||||
if(oCasesSubFrame){
|
||||
oCasesSubFrame.style.height = (height-5) + 'px';
|
||||
} else {
|
||||
setTimeout('autoResizeScreen()', 2000);
|
||||
}
|
||||
}
|
||||
//oCasesSubFrame = oCasesFrame.contentWindow.document.getElementById('casesSubFrame');
|
||||
//oCasesSubFrame.style.height = height-10;
|
||||
}
|
||||
function getStyle(targetElement,styleProp) {
|
||||
if (targetElement) {
|
||||
|
||||
Reference in New Issue
Block a user