I have made an experimental module that makes the overlay able to remember and restore the scroll height of the parent window once the overlay closes. This also works, when the parent window is being redirected e.g. after a save action, because it stores the scroll value in the window.name variable.
The module (Overlay helper) can be found here : https://drupal.org/sandbox/prinds/1918678
But in order for it two work, two extra javascript events needs to be triggered in the overlay-parent.js:
- drupalOverlayBeforeOpen
- drupalOverlayCloseDone
These are placed early and late in the process of opening and closing, ensuring that the body height of the parent window is intact.
I will attach a patch that adds the events..
Will it be possible to accept this patch into the overlay module?
Comments and suggestions on the overlay helper module are also welcome.