I'm developing a iOS HTML 5 webapp and need to display a large page with lots of text. A iframe seems the right tool as it allows scrolling to view the content on a small screen. Using iOS 5+ and overflow: auto; -webkit-overflow-scrolling:touch;
in the iframe's style I can get working scrolling in a iframe on the iPhone.
The issue is that when scrolling horizontally to view more of the frames content the frame is blank, scrolling down works as expected. I suspect that the problem lies in the fixed viewport tag:
<meta name="viewport" content="width=device-width; minimum-scale=1.0; initial-scale=1.0; user-scalable=yes">
I have the iframe setup is follows:
<div id="framecont" style="height: auto; width: auto; overflow: auto; -webkit-overflow-scrolling:touch;">
<iframe height="100%" id="iframe" scrolling="no" width="100%"></iframe>
</div>
Any advice on alternatives to the iframe or a solution to the content drawing issue would be greatly appreciated.