Question
Accenture
IN
Last activity: 21 Mar 2017 4:51 EDT
Remove horizontal scrollbar in harness
We have multiple screens which have horizontal scrollbars. In the harness level of one of the screens, we have added a script in scripts and styles tab to remove the scrollbar. Now, the harness can be accessed two ways. So, after adding the script,the scrollbar is removed in one case and not removed in other. Both ways, the same harness is being called. How can this be resolved. Also, by adding the same script for other harnesses, the scrollbar is not getting removed.
The added script is-
pega.u.d.busyIndInterval = 100;
pega.u.d.gDirtyOverride = false;
pega.util.Event.addListener(window,'resize',function()
{
window.frameElement.style.height = document.body.scrollHeight;
window.frameElement.style.width = document.body.scrollWidth;
}
);