07-26-2011 07:57 AM
I am having some trouble with the screen size of the new 9900 and 9930 simulators. If I set the body size using:
document.body.style.height = screen.height + "px"; document.body.style.width = screen.width + "px";
The body size ends up larger than the simulators screen. screen.height and screen.width do return the correct sizes however. If I take this portion of the code out and set the width to just 100% then the screen size is okay. Has anyone else run into this issue on the 9900 and 9930 simulators? The OS 5 and OS 6 simulators work fine.
Solved! Go to Solution.
08-31-2011 02:13 PM
I got similar issue. You can use following viewport:
<meta name="viewport" content="width=device-width,target-densitydpi=device-dpi,user-scalable=no,initial-scale=1.0">
please have a look at