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

Modal Window does not get resized

SA-29451

Summary



A Modal Window has a repeat grid which will show/hide based on condition. When the repeat grid is hidden, the modal window doesn't resize and blank space appears before button. 

Error Messages



Not Applicable

Steps to Reproduce



1. On click of a repeat grid, launch a local location in Modal Window. 
2. Embed section in the Local Action with a check box which will show/hide another repeat grid on condition. 
3. when section of repeat grid hides, blank space appears and button is coming to bottom of the Modal window.

Root Cause



Extra height was getting added on the user side.


Resolution



Below code was suggested to remove height from modal content div. It is added in userworkform.

<script> 
pega.u.d.attachOnload(function(){ 
if(pega.u.d.bModalDialogOpen){ 
window.setTimeout(function(){ 
$("#modaldialog_bd .customExpandInnerDivStyle").height(''); 
},0); 

 

Published October 28, 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