Modal dialog not launched at the center of visible screen
SummaryAfter upgrading application from PRPC version 6.1 SP2 to 7.1.8, it was observed that the modal dialogs are launched at the center of entire web page, instead of visible screen. Modal dialogs scroll when the scrollbar is moved.
Error MessagesNot Applicable
Steps to Reproduce
- Click a button to launch a local action
- Observe: the dialog launched at the center of entire web page, instead of visible screen.
Root CauseAn issue in the custom application code or rules. When "Stretch to fit contents of gadget is selected" for 'pageResize' while creating an IAC gadget, a browser scrollbar is getting added and is causing the modal dialog to scroll.
ResolutionAs per the current design, modal dialog position will be calculated based on iframe height.
In case of IAC, the iframe will have the stretched height and modal dialog will be centred to this height. Hence this is expected as per design.
Published September 30, 2016 - Updated October 18, 2016