On Aug 13, 10:54 am, drewdeal <[email protected]> wrote:
[...]
> Along those lines, be aware that to make iui more compatible with
> other phones than the iphone (if that is seen as a virtue) you should
> change the var orient setting more loosely to something like this:
>      var orient = currentWidth <= 390 ? "profile" : "landscape";

There should be no hard coded value at all. Landscape mode can be
assumed if width is greater than height, otherwise, the device is in
portrait mode, so:

  var orient = (currentWidth > currentHeight)? ... ;


--
Rob

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

Reply via email to