Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1993] iOS: First window is turned by 90 degrees on iPad device

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-08T22:45:12.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsdefect, ios, ipad, iphone, orientation, window
ReporterJick Steen
AssigneeIngo Muschenetz
Created2011-04-15T03:07:37.000+0000
Updated2017-06-08T22:45:13.000+0000

Description

Don't know whether it's a similar issue to #1694. In my case, fullsceen is disabled. I've the problem that when starting my iPhone/iPad project on an iPad device (not reproduceable in simulator) - holding the iPad in landscape mode - the app will be displayed turned by 90 degrees. Screenshot is attached. The hardware lock is off but occurs even when enabled.

I'm allowing just portrait orientationModes in each window:

Titanium.UI.currentWindow.orientationModes = [Titanium.UI.PORTRAIT, Titanium.UI.UPSIDE_PORTRAIT];

I'll do this at first within each window, before adding something to the view. It is displayed correctly on the iPhone. It is also displayed correctly when holding the iPad in portrait mode and then starting the app. The really strange is, opening the next window will be displayed great. Even opening the same window later (without closing the app in the meanwhile) works fine (the layout will be displayed correct then). That means it's just the first window.

Afterwards tried to create a simple, reproducable example containing only a tableview and this does always works. Maybe it only occurs when adding some views at first and later a tableview?

I am using Titanium Developer 1.2.1, Mac OS X 10.6.2, Xcode 3.2.4, iPhone SDK 4.1.

Greetz

Attachments

FileDateSize
screenshot-20101004-151802.png2011-04-15T03:07:37.000+000023408

Comments

  1. Jick Steen 2011-04-15

    I am using this build Oct 1 2010 10:34 r763b1ded

  2. Jick Steen 2011-04-15

    Tested build "Oct 4 2010 18:42 rd4ce7fff" today, same error.

    But it works as expected when setting the orientation specific after defining orientationModes:

    Titanium.UI.currentWindow.orientationModes = [Titanium.UI.PORTRAIT, Titanium.UI.UPSIDE_PORTRAIT];

    Titanium.UI.orientation = Titanium.UI.PORTRAIT;

    Don't know whether it is expected to set orientation to PORTRAIT to achieve the expected behaviour.

  3. Lee Morris 2017-06-08

    Closing ticket as there has been no input for the last 6 years. Any problems, please file a new ticket.

JSON Source