{ "id": "91773", "key": "TIMOB-9117", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "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-04-01T11:34:57.000+0000", "created": "2012-05-11T15:51:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "qe-ios050912" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:43:45.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": "Description:\r\nThe normal window appears in incorrect mode if device orientation is landscape.\r\nThis issue occurs on 2.0.1 as well.\r\n\r\nSteps to reproduce:\r\n\r\n1. Run the following code:\r\n{code}\r\nfunction modalWindow(){\r\n var b = Ti.UI.createButton({title:'close'});\r\n var a = Ti.UI.createButton({title:'open win'});\r\n \r\n var w = Ti.UI.createWindow({\r\n backgroundColor:'red',\r\n rightNavButton:b,\r\n leftNavButton:a\r\n });\r\n \r\n w.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));\r\n \r\n b.addEventListener('click', function(){\r\n w.close();\r\n });\r\n a.addEventListener('click', function(){\r\n normalWindow().open();\r\n });\r\n return w;\r\n}\r\nfunction normalWindow(){\r\n var b = Ti.UI.createButton({title:'close',width:200,height:40, top:100});\r\n \r\n var w = Ti.UI.createWindow({\r\n backgroundColor:'blue'\r\n });\r\n w.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));\r\n w.add(b);\r\n b.addEventListener('click', function(){\r\n w.close();\r\n });\r\n return w;\r\n}\r\n(function(){\r\n var win = Ti.UI.createWindow({\r\n backgroundColor:'green'\r\n });\r\n \r\n var btn = Ti.UI.createButton({\r\n width:100,\r\n height:40,\r\n title:'open modal'\r\n });\r\n \r\n win.add(btn);\r\n \r\n btn.addEventListener('click', function(){\r\n modalWindow().open({modal:true});\r\n });\r\n \r\n win.open();\r\n})();\r\n{code}\r\n2. Press \"Open modal\"\r\n3. Rotate device to the landscape mode\r\n4. Press \"Open win\" button\r\n\r\nExpected result:\r\nThe normal window should appear in correct mode\r\n\r\nActual result:\r\nThe normal window appears in incorrect mode (see attachment)", "attachment": [ { "id": "27662", "filename": "Screenshot 2012.05.11 15.14.34.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-11T15:51:13.000+0000", "size": 38173, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Titanium.Window - The normal window appears in incorrect mode", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 2.0.1.201204261628 \r\nTitanium SDK: 2.0.2.v20120505151714\r\nDevice: iPad 3 Gen (5.1.1)", "comment": { "comments": [ { "id": "244872", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPad Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T11:34:57.000+0000", "updated": "2013-04-01T11:34:57.000+0000" }, { "id": "413580", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:43:45.000+0000", "updated": "2017-03-17T18:43:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }