Support Article
Harness does not stretch to full height on load
SA-3710
Summary
When the harness, is loaded, the harness is shown in only the top 20% of the screen with a significant scrollbar on the right-hand side.
Error Messages
No error message.
Steps to Reproduce
Configure a portal to show a WorkArea control. This WorkArea control refers a harness. At run time, the harness referred in WorkArea control does not stretch to full height. It is shown in a small area of the screen with a vertical scroll bar.
Root Cause
This issue particularly arises because the pega.u.d.stretchHarness is not initialized to true when that harness is loaded. In PRPC 6.1 SP2, HFix-3040 introduces pxStretchHarness JavaScript file. This JavaScript file has just one line of code in it, i.e. pega.u.d.stretchHarness = true;. This JavaScript file should be referred under the 'Scripts & Styles' tab of the harness rule.
Resolution
HFix-3040 brings in a bunch of other rules apart from pxStretchHarness JavaScript file. Also, there would be dependent HFix items on that. Instead of installing the HFix, user created a JavaScript file and put the same code that is present in pxStretchHarness rule. Referred the new JavaScript file created under 'Scripts & Styles' tab of the harness.
Published January 31, 2016 - 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.