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

Harness does not stretch to full height on load



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.


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

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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