In mobile safari on iOS 8, when I follow a link to open a new window (which has a <meta name="viewport" content="width=device-width, initial-scale=1.0">
), the page intermittently appears scrolled way up (i.e. there is a big gap between the top of the viewport and the first element of the page).
Scrolling at all after that brings behaviour back to normal. This is very frustrating, what is the most reliable workaround?
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
margin:0;
}
h1 {
background-color:red;
margin:0;
}
</style>
</head>
<body>
<h1>Top of page</h1>
</body>
</html>
Bug report under rdar://20598527