On 17/08/2009, at 2:40, RobG wrote:

>
>
>
> On Aug 14, 4:43 pm, Sean Gilligan <[email protected]> wrote:
>> RobG wrote:
>>> 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)? ... ;
>>
>> Genius idea!  Damn, why didn't anyone else think of this?
>
> I've posted it at least twice previously. But the bottom line for me
> is why bother to detect orientation at all? One reason I use portrait
> is it allows me to zoom in a little more and get bigger fonts without
> having to pan. If the author decides to re-format the page to give the
> same size fonts but wider viewport, I'm back to zooming and panning.

This particular (new) user interface idea of yours might -admittedly-  
fit well for some apps, but usually the screen is rotated to allow for  
more info (text or whatever) per line, not to zoom it in.

> If a page is well designed in the first place, there is no need to
> detect orientation.

Dogmatic RobG, have you got acute pointedearsitis ?

I have a page in an app with a graph-per-line (the graph is drawn  
client-side in a <canvas>), when the user rotates the iPhone, the  
graph is redrawn in a wider <canvas> and shows more data points.  
Layout/CSS alone couldn't help here, AFAICT.

-- 
Jorge.

--~--~---------~--~----~------------~-------~--~----~
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