title: iPhone: fixed div sticks in the middle of the page when coming back by "history.back(-1)"
body: <p>Having a problem with fixed div using iPhone. I know that in iOS 5 the functionality for <code>position:fixed</code> has been added. My div is positioned at the top of the screen and behave pretty good, anyway, there are some bugs during scrolling. </p>
  
  <p>But what <em>actually</em> makes me angry - it is the position of this div after coming back to the current page clicking on <code>javascript:history.back(-1)</code> link. The fixed div sticks in the middle of a screen. When I try to scrool, it jumps back on the right position.</p>
  
  <p>Is there any cure for the bug?</p>
  
  <p>PS. Sometimes the div is completely not visible after returning by <code>history:back</code> function. It shows up after scrolling. It seems to me a bit the same problem.</p>
  
  <pre><code>&lt;div class='rlm fixed rlm-zindex'&gt;
    &lt;a href='http://webiste.com/' target='_new'&gt;
      &lt;img src='banner-960.png' class='jqwatch' border=0 /&gt;
    &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And CSS:</p>
  
  <pre><code>div.rlm {
              top: 0;
              left: 0;
              right: 0;
              width: 100%;
              height: auto;
              margin-bottom: 0;
              padding-bottom: 0;
              border-bottom: solid 1px;
          }
  
  div.rlm img {
              width: 100%;
              left: 0;
              right: 0;
          }
  
  .fixed { position: fixed; }
  .rlm-zindex { z-index: 5; }
  </code></pre>