Sample code here: http://pastebin.com/95z3pftQ
I am trying to create a mobile page with a fixed title and a βcontentβ section, which will be filled with external (disinfected, but otherwise arbitrary) HTML. I need to use iscroll or something like this, because I need to support vertical / horizontal scrolling and scaling , which has no native equivalent.
The problem is that with the directive width=device-width meta viewport, Mobile Safari resizes all block-level elements to the width of the screen, regardless of the width of their contents, unless they have a specified width. iscroll then looks at the width of the container (which is the width of the screen) and does not know that more content is required for horizontal movement. So in this example, the calculated width for div#container on my iPhone is 290 pixels, but the calculated width for table#really-wide-content is 1000 pixels.
Is it possible to disable the effects of the meta viewport directive inside a single div on a page? Please note that I can not know a priori how wide the content is or what its html structure is, although I can change the built-in styles programmatically if necessary.
jquery-mobile mobile-safari viewport iscroll4
RecursivelyIronic
source share