css - WebWorks Viewport Width Issues -


on blackberry bold 9900 running 7.1 bundle 998 (v7.1.0.284, platform 5.1.0.230) having strange viewport related issue.

i non-deterministically seeing screen.width alternate between 320px , 356px.

this affects behavior of rendered content because have

<body>    <div style="width:100%">    </div> </body> 

that approx 50% of time renders correctly (i.e. no horizontal scroll), rest of time renders zoomed in , scrolls horizontally 36px. setting fixed width on body i.e. 320px causes zoom issue resolved, still has white scrollable area on right side.

viewport:

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

it turns out there issue device width:100% causes content render wider screen. fix set width:auto.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -