[webkit-dev] iPhone Orientation and Scaling

David D. Kilzer ddkilzer at kilzer.net
Tue Jul 3 13:16:18 PDT 2007

Christopher Allen <ChristopherA at iPhoneWebDev.com> wrote:

> In the www.iPhoneWebDev.com community we've been puzzling through how
> to identify the change that happens when the iPhone's physical
> orientation changes from portrait to landscape and back, and also how
> to control the viewport scaling.
> We need this in order to create good iPhone webapp UI that works in
> both portrait and landscape mode.
> [...]
> There is a lot of discussion on this in this thread:
> My guess is that all of these problems are in layers that are not
> webkits responsibility, but possibly someone here might know the
> answers, or know how they should work to follow an existing DOM
> standard. Is there a scaling property in DOM someplace? Is there
> another way we can detect orientation change until the window.onresize
> bug is fixed?

Others have used the window's resize event to determine when the phone rotates.



More information about the webkit-dev mailing list