{ "id": "111003", "key": "TIMOB-13027", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15274", "description": "2013 Sprint 06 API", "name": "2013 Sprint 06 API", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-03-20T16:38:59.000+0000", "created": "2013-03-11T20:57:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_textfield", "qe-testadded" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "26855", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "110422", "key": "TIMOB-12924", "fields": { "summary": "iOS: App becomes unresponsive in landscape mode", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:10:04.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Problem description*\r\nWhen the app loads in landscape mode on iPad (as an iPhone app), the text field focus events are not fired when tapping on the fields. However, once a device rotation occurs, it starts working.\r\n\r\n*Test case*\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : '#000'\r\n});\r\n\r\nvar registerUsername = Titanium.UI.createTextField({\r\n\thintText : 'User ID',\r\n\theight : 40,\r\n\tleft : 10,\r\n\ttop : 80,\r\n\twidth : Ti.Platform.displayCaps.platformWidth - 40,\r\n\tborderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\nvar registerPassword = Titanium.UI.createTextField({\r\n\thintText : 'Password',\r\n\theight : 40,\r\n\tleft : 10,\r\n\ttop : 40,\r\n\tpasswordMask : true,\r\n\twidth : Ti.Platform.displayCaps.platformWidth - 40,\r\n\tborderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\nwin.add(registerUsername);\r\nwin.add(registerPassword);\r\n\r\nregisterUsername.addEventListener('focus', function() {\r\n\tTi.API.info(\"Register Username: Focus Event\");\r\n});\r\nregisterPassword.addEventListener('focus', function() {\r\n\tTi.API.info(\"Register Password: Focus Event\");\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n*tiapp.xml changes*\r\n{code}\r\n\r\n \r\n Ti.UI.LANDSCAPE_LEFT\r\n Ti.UI.LANDSCAPE_RIGHT\r\n \r\n \r\n Ti.UI.LANDSCAPE_LEFT\r\n Ti.UI.LANDSCAPE_RIGHT\r\n \r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: TextField focus() event not fired when application loads in landscape mode as iPhone app on iPad", "creator": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "241745", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "The problem seem to be avoided if the window is set to fullscreen:\n\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor : '#000',\n fullscreen: true\n});\n{code}", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-12T13:29:21.000+0000", "updated": "2013-03-12T13:29:21.000+0000" }, { "id": "242826", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "More information: This only happens on iOS 6.0 or later, both on simulator and device, and even hitting the (2x) button dispells the situation. This may be something only Apple can fix.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T01:31:06.000+0000", "updated": "2013-03-19T01:31:06.000+0000" }, { "id": "242866", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I wonder if it is the same issue that we saw in TIMOB-12924. A simple js workaround was provided for that issue. Would be worthwhile to investigate if the same workaround works here as well.\n\n{code}\nTitanium.UI.iPhone.showStatusBar({animated: false});\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T07:13:13.000+0000", "updated": "2013-03-19T07:13:13.000+0000" }, { "id": "243036", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As far as I can tell, this is a duplicate of TIMOB-12924. Making the association.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T21:42:55.000+0000", "updated": "2013-03-19T21:42:55.000+0000" }, { "id": "243069", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also, Titanium.UI.iPhone.showStatusBar({animated: false}); indeed does mitigate this. Proposing that, given this is partially Apple's bug and has a workaround, that we push it off until later.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T23:34:38.000+0000", "updated": "2013-03-19T23:35:04.000+0000" }, { "id": "415088", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate and links to the related ticket have been provided above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:10:04.000+0000", "updated": "2017-03-22T22:10:04.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }