Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Full page does not load while opening a work item from MDM profi

SA-2293

Summary



Full page does not load while opening a work item and scroll bar is coming.
The work around is to minimum/maximize the window in order to get the page to display fully

Error Messages



N/A


Steps to Reproduce



Open any WO from the portal .
The work item does not display fully.


Root Cause



The iframe that has the contents of the Work Object, is not getting the right height.
If we set the height according to the content of the iframe, the behavior could be rectified.


Resolution



Following local-change solution was provided inside a section in the Perform Harness :

function test()
{
 
var test = window.parent.flag;
if(typeof test == "undefined"){
window.parent.flag = 1;
var obj = window.parent.document.getElementById("pega_gadgetContainer");
var iframeObj =null;
for(var j=0;j<obj.childNodes.length;j++)
{
if(obj.childNodes[j].style.display=="block")
{
iframeObj = obj.childNodes[j].firstChild;
break;
}
 
}
var ht = window.parent.innerHeight ||  window.parent.document.body.clientHeight || window.parent.document.documentElement.clientHeight;
ht = ht - (getYCord(iframeObj)+13);
if(iframeObj.contentWindow.document.body.scrollHeight <= ht)
iframeObj.style.height = iframeObj.contentWindow.document.body.scrollHeight + "px";
else{
 
iframeObj.style.height=ht+"px";
 
}
 
 
 
}
 
 
 
}
 
function getYCord(elem)
{
return elem.offsetParent ? (elem.offsetTop + getYCord(elem.offsetParent)): elem.offsetTop;
}
setTimeout("test()",0);
 
 
 
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us