Details
-
Bug
-
Resolution: Won't Fix
-
Medium
-
None
-
3.2
-
None
Description
When trying to create a link to an anchor on a page I noticed some very strange behavior. The page would initially be positioned at the anchor, but would immediately scroll back to the top of the page. After some digging I found that this seems to be related to iPhone support.
In the page content there is this script:
<!-- start iPhone javascripts --><script type="text/javascript">
addLoadEvent(function()
);</script>
<!-- end iPhone javascripts -->
And addLoadEvent is defined in .../s/1810/1/_/download/resources/com.atlassian.confluence.plugins.iphone/iphone.js:
—
/* Hides the scroll bar */
function hideAddressBar()
/* Runs some onload initialize logic. There isn't anything here at the moment, but this is where
logic to tidy up the dashboard might go*/
function initializeIphone() {
}
/* Adds onload functions */
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function')
else {
window.onload = function() {
if (oldonload)
func();
}
}
}
—
This code seem to be present and execute on a number of browsers that I've tested: Firefox 3.6, Safari 5.0 and Chrome 6.0 (all Mac OS X 10.6)