Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12924] iOS: App becomes unresponsive in landscape mode

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-07-25T18:12:25.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 15 API, 2013 Sprint 15, Release 3.1.2, Release 3.2.0
ComponentsiOS
Labels6.0.1, iPad, ios, module_orientation, qe-testadded
ReporterJeyakumar Datchinamoorthi
AssigneeSabil Rahim
Created2013-03-01T01:15:11.000+0000
Updated2013-08-22T11:13:11.000+0000

Description

The attached sample application has login type, username and password fields. Tapping logintype will open another window. When the application is launched in landscape mode, the events are not fired to open the login type window. The password field is uneditable. If the device is tilted to portrait or if the app is launched in portrait all the events work fine. This happens ONLY on the device and not on the sandbox using titanium studio.

Attachments

FileDateSize
IpadLsTest.zip2013-03-01T01:15:11.000+00002901117

Comments

  1. Pedro Enrique 2013-03-01

    I notice the bug while running the app on the iPad as if it were an iPhone app, small screen. Is this what you are seeing? I see no problems while running it as an iPad app. Always testing on device.
  2. Pedro Enrique 2013-03-01

    This is a simple test case that also demonstrated the issue:
       var win = Ti.UI.createWindow({
       	backgroundColor:'#CCC',
       	orientationModes: [
       	     Titanium.UI.PORTRAIT,
       	     Titanium.UI.LANDSCAPE_LEFT,
       	     Titanium.UI.LANDSCAPE_RIGHT
       	 ]
       });
       
       var view = Ti.UI.createView({
       	height:100,
       	width: 100,
       	backgroundColor:'white'
       });
       
       view.addEventListener('click',function(){
       	alert('Hello?');
       });
       win.add(view);
       win.open();
       
    Only happens if build for iPhone and ran on iPad simulator or device.
  3. Blain Hamon 2013-03-02

    Took a look with Vishal, and it's related to iOS 6.0's strangeness. 5.0 doesn't show this, and hitTest and userInteractionEnabled show no differences. He's going to take a look since he's been working the most with 6.0 orientation magic.
  4. Pedro Enrique 2013-03-04

    Workaround

    Placing this line of code in app.js fixes the issue for now
       Titanium.UI.iPhone.showStatusBar({animated: false});
       
  5. Vishal Duggal 2013-05-15

    There is a JS workaround. And we are not sure if the fix is safe enough for 3.1.1. Moving to 3.1.2 for now.
  6. Sabil Rahim 2013-07-24

    Master PR : https://github.com/appcelerator/titanium_mobile/pull/4487 3_1_X PR : https://github.com/appcelerator/titanium_mobile/pull/4488
  7. Vishal Duggal 2013-07-25

    CR + FR approved
  8. Lokesh Choudhary 2013-08-15

    Verified the fix & the app does not become unresponsive when launched in landscape mode. Thus closing Environment: Appcel Studio : 3.1.2.201308091728 Ti SDK : 3.1.2.v20130814124556 Mac OSX : 10.8.4 Alloy : 1.2.0-beta CLI - 3.1.2-alpha Ipad4 - 6.0.1

JSON Source