By coincidence, I am dealing with what seems to be a very similar
problem.

When I place an image on the page that is wider than 320 pixels, the
scale seems to automatically change to 1.125 to 1. If I want a header
to be the width of the screen, I have to set its width to 360. The 360
imaginary width is constant, even with an image 1800 pixels wide,
which is what I want to show.

 document.body.offsetWidth returns 320.

My worry is that this 360/320 ratio will vary with OS version so I
don't want to hard code it, even though that works fine on my iPod.
(OS 2.2)

I can deal with setting the CSS to the width if I know what it is, but
haven't found the property to read to find the appropriate width.
(setting style.width = 100% results in a width of 320).  Am I missing
some way to get the actual scale?

Or preferably, I would like to fix the scale at 1.0 and deal with
absolute positions and widths.

In landscape mode, the width is and stays at 480 as one would expect
with the same wide image displayed.

Any insights out there?

Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to iphonewebdev@googlegroups.com
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to