{ "id": "63868", "key": "TIMOB-3236", "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": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-05-07T11:51:58.000+0000", "created": "2011-04-15T03:40:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:19:46.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": "{html}

Titanium Developer 1.2.2
\r\nTitanium SDK 1.6
\r\niPhone SDK 4.2 on simulator

\r\n

sample code http://pastie.org/1619046

\r\n

[1st issue] 2 tabs, each of them got different orientationMode\r\nset.
\r\n1st tab loads fine in simulator.
\r\nby clicking on the second tab, tabGroup is wrongly resized.

\r\n

[second issue] app loads fine on the beginning.
\r\nby clicking on the second tab, app is rotated as per\r\norientationMode
\r\nby clicking on 1st tab again, orientationMode is ignored.

\r\n

looks like orientationMode is considered just once, on window\r\nopen, and not anymore.
\r\n(catching orientationChange event and changing it there is bugging\r\ntabGroup and sometimes dimension of whole window - http://img696.imageshack.us/i/bugiz.jpg/)

{html}", "attachment": [ { "id": "18285", "filename": "bug.jpg", "author": { "name": "michalgondar", "key": "michalgondar", "displayName": "Michal Gondar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:40:07.000+0000", "size": 54505, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: Orientation on iPhone doesn't update Ti.UI.TabGroup correctly", "creator": { "name": "michalgondar", "key": "michalgondar", "displayName": "Michal Gondar", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "michalgondar", "key": "michalgondar", "displayName": "Michal Gondar", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "217462", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on the iOS simulator using TiSDK 2.2.0v20120904101713, issue still valid. \r\nThe first time the tab is resized incorrectly, if you repeat the steps, it will be resized correctly. So it's always the first time that it doesn't update appropriately.\r\n\r\n{code}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n \r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n orientationModes: [Titanium.UI.LANDSCAPE_LEFT]\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n title:'Tab 1',\r\n window:win1\r\n});\r\n \r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n orientationModes: [Titanium.UI.PORTRAIT]\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n title:'Tab 2',\r\n window:win2\r\n});\r\n \r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2);\r\n \r\ntabGroup.open();\r\n{code}", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-09-04T11:22:26.000+0000", "updated": "2012-09-04T11:22:26.000+0000" }, { "id": "250543", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue cannot reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T11:51:58.000+0000", "updated": "2013-05-07T11:52:55.000+0000" }, { "id": "414564", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:19:46.000+0000", "updated": "2017-03-21T22:19:46.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }