{ "id": "136267", "key": "TIMOB-17653", "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": "16586", "description": "Release 3.4.2", "name": "Release 3.4.2", "archived": false, "released": true, "releaseDate": "2017-03-11" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-10-02T20:34:28.000+0000", "created": "2014-09-09T05:21:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_optiondialog", "qe-3.4.0", "qe-manualtest", "regression" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [ { "id": "41057", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "136313", "key": "TIMOB-17661", "fields": { "summary": "iOS8: Alert dialog distortion on rotation", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "41701", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "137364", "key": "TIMOB-17804", "fields": { "summary": "iOS8: Refactor OptionDialog", "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": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-03T22:41:52.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": "For a project that does not have the file Default-568h@2x.png, required for 4\" screen iPhone, in the resources then the option dialog truncates on orientation change.\r\n\r\nThis is a regression as this issue did not occur with SDK 3.3.0.\r\n\r\nSteps to Reproduce:\r\n1. Create a new project\r\n2. Delete the file 'Default-568h@2x.png' from Resources > iPhone folder of the project\r\n3. Replace the app.js with the code below\r\n4. Run the app on an iOS device (a 4\" screen device) in portrait mode\r\n5. In the app, click on button 'here'. the option dialog is shown\r\n6. Rotate the device to landscape orientation\r\n\r\nActual Result:\r\nThe option dialog is shown truncated. Refer to attached screenshot\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\t\r\nvar dialog = Titanium.UI.createOptionDialog({\r\n    title: 'Hello',\r\n    options: ['Option 1','Option 2'],\r\n    cancel:1\r\n});\r\n \r\nvar btn = Ti.UI.createButton({title:'here'});\r\n \r\nbtn.addEventListener('click', function(){\r\n    dialog.show();\r\n});\r\n \r\nwin.add(btn);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "51065", "filename": "OptionDialogIssue.png", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-09T05:21:56.000+0000", "size": 48551, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Option Dialog shown truncated on orientation change when project resources don't have Default-568h@2x.png file", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested On:\r\nSDK: 3.4.0.v20140908164913\r\nStudio: 3.4.0.201409032106\r\nCLI: 3.4.0-beta\r\nAlloy: 1.5.0-beta2\r\nXcode: Xcode 6 Beta7\r\nDevice: iPhone 5S (v8.0 beta5)", "closedSprints": [ { "id": 220, "state": "closed", "name": "2014 Sprint 20 SDK", "startDate": "2014-09-29T22:32:25.224Z", "endDate": "2014-10-13T18:25:00.000Z", "completeDate": "2014-10-13T18:25:45.560Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "324577", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could be fixed as part of the related tickets.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-18T20:22:17.000+0000", "updated": "2014-09-18T20:22:17.000+0000" }, { "id": "326804", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved as part of TIMOB-17804", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-02T20:34:28.000+0000", "updated": "2014-10-02T20:34:28.000+0000" }, { "id": "326929", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.9.5\r\nAppcelerator Studio, build: 3.4.0.201409261245\r\nTitanium SDK build: 3.5.0.v20141002135233\r\nTitanium CLI, build: 3.4.0\r\nAlloy: 1.5.1\r\nXcode6.0.1, 6.1\r\niPhone 5 (8.1 beta)\r\n\r\nAdded the attached test code to an existing project, removed the splashcreen file and then built to a 4\" screen device. When the option dialog is on screen and the device is rotated it no longer appears truncated.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-10-03T20:33:53.000+0000", "updated": "2014-10-03T20:34:21.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }