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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.