Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Detecting orientation
Mon, Jun 3 2013 9:34 AMPermanent Link

Matthew Jones

I've been getting my web app working on all the mobile devices. Generally all is
well, from horrible cheap Android all the way via iPhones, Nexus devices to iPad 4.
However, there is one small issue, that of the iPhone and rotation. Most devices
are working with the desktop resize facility:
   Application.Desktop.OnResize := DesktopResized;
However the iPhone doesn't call this after the first rotation from portrait to
landscape, so it switches from 320 wide to 480 wide, and gets stuck.

rowser-with-javascript seems to imply that I need to add an orientationChange
listener too. Is this possible in EWB? It would tidy my application nicely. Clues
and pointers to how to do it welcome. Thanks.

/Matthew Jones/
Mon, Jun 3 2013 11:42 AMPermanent Link

Matthew Jones

https://github.com/h5bp/html5-boilerplate/issues/1099 relates to this, and
basically it is fixed in iOS6 (and tests as such). For my purposes, I'm going to
ignore it, but if anyone has a fix, perhaps manual, then I would like to have some
way to do so.

/Matthew Jones/
Tue, Jun 4 2013 2:26 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.


Email timyoung@elevatesoft.com


seems to imply that I need to add an orientationChange listener too. Is this
possible in EWB? >>

You can add any listener in EWB that you can in any JS application.
However, I wouldn't recommend trying it without understanding how it's
already done in EWB.

I can add this in the next round of updates.

Tim Young
Elevate Software