This problem seems to have been around forever. Under some specific circumstances, iOS browsers surface this frustrating bug.
The issue:
If you have a web page which contains an iFrame and you are modifying the iFrames content document programmatically, the iFrame will jump to the top of the page. However, this only happens if the page, before the DOM manipulation, is beyond some height, typically this seems to be a length greater than twice the length of the viewport.
This issue appears regardless of whether you are modifying the DOM structure or changing style properties.
This bug is only present on iOS, including the latest release as of this time (9.2)