Support Article
Extra Space is preserving when visibility condition is false
SA-14431
Summary
User has recently upgraded PRPC application from PRPC 5.5 to Pega 7.1.7 and in few screens they observe that extra space is getting retained when visibility condition is false during section refresh on click of the button.
User has a custom control, upon click on it, the screen navigates to the previous state. This is achieved by doing refresh section and hiding few contents based on visible when condition.
This creates an empty space when the content is not displayed (resize does not happen). When the OOTB button is used, the issue goes away. But the page set message are no more visible. The use case has an activity configured to set the page set message after clicking on Submit button, however in run-time they are not displayed on Harness. This messages is seen on clipboard though.
Error Messages
Not Applicable.
Steps to Reproduce
1. Create button on the screen,
2. Create a activity which has page set messages configured.
3. On click of the button, the page set messages are not thrown. They appear on the clipboard.
Root Cause
Usage of old custom portals yields this behavior.
Resolution
The following script can be used in the userworkform and is called on click of button in the custom control which solves the issue.
function test_harnessresize(){
document.getElementById("HARNESS_CONTENT").style.height="1px";
window.style.height ="1px";
}
The above script triggers the resize logic and removes the extra space.
Published October 1, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.