Fixed positioning in the second Android 3 Should work. . . Should not it?

From looking around on the net, my understanding is that fixed positioning should work in Android 2.3 if one has the right meta tags set.

This is what my current viewport settings are.

    <meta name="viewport"
          content="width=device-width,
          height=device-height,
          initial-scale=1.0,
          maximum-scale=1.0,
          minimum-scale=1.0,
          user-scalable=no" />

On my Galaxy S2, the div with fixed position (basically it’s a thin header at the top of the page) does not stay in place when scrolling down the page. It moves with the page.

However, when you stop scrolling, it will jump to the top of the page again.

Is that the expected fixed position behaviour for Android 2.3?

Is there a better way to do this (which hopefully doesn’t involve the massive complexity of addiong iScroll)?

This entry was posted in Codes & Scripts and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>