{ "id": "109791", "key": "TIMOB-12760", "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": [], "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": "2017-08-18T21:56:06.000+0000", "created": "2013-02-15T21:23:14.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "camera", "media", "qe-sdk3.0.2" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-18T21:56:06.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": "While testing Media Module I noticed \"Default Camera\" button being moved down the screen. It is not regression, occurs in 3.0.0.GA.\r\nTest steps:\r\nRun test code\r\n{code}\r\n\r\n\t\t// create window with vertical layout\r\n\t\tvar win = Ti.UI.createWindow({backgroundColor:'white', layout:'vertical'});\r\n\t\t\r\n\t\t\r\n\t\t// create button, register the modified click callback, add button to window\r\n\t\tfunction addButton(title, clickCallback)\r\n\t\t{\r\n\t\t\tvar button = Ti.UI.createButton({title:title, width:'300', height:'50'});\r\n\t\t\t\r\n\t\t\tbutton.addEventListener('click', function() {\r\n\t\t\t\tTi.Media.showCamera({mediaType:Ti.Media.MEDIA_TYPE_PHOTO});\r\n\t\t\t\tclickCallback();\r\n\t\t\t\tTi.Media.vibrate();\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\twin.add(button);\r\n\t\t}\r\n\t\t\r\n\t\t// camera with no switch\r\n\t\taddButton('Default Camera', function(){\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t// camera with front specified\r\n\t\taddButton('Front Camera Test 1', function(){\r\n\t\t\tTi.Media.switchCamera(Ti.Media.CAMERA_FRONT);\r\n\t\t});\r\n\t\t\r\n\t\t// camera with front specified after switching to back\r\n\t\t// checks if switch function actually works, opposed to it being the default\r\n\t\taddButton('Front Camera Test 2', function(){\r\n\t\t\tTi.Media.switchCamera(Ti.Media.CAMERA_REAR);\r\n\t\t\tTi.Media.switchCamera(Ti.Media.CAMERA_FRONT);\r\n\t\t});\r\n\t\t\r\n\t\t// camera with back specified\r\n\t\taddButton('Back Camera Test 1', function(){\r\n\t\t\tTi.Media.switchCamera(Ti.Media.CAMERA_REAR);\r\n\t\t});\r\n\t\t\r\n\t\t// camera with back specified after switching to front\r\n\t\t// checks if switch function actually works, opposed to it being the default\r\n\t\taddButton('Back Camera Test 2', function(){\r\n\t\t\tTi.Media.switchCamera(Ti.Media.CAMERA_FRONT);\r\n\t\t\tTi.Media.switchCamera(Ti.Media.CAMERA_REAR);\r\n\t\t});\r\n\t\t\r\n\t\t// camera passed invalid (non-existent) argument\r\n\t\taddButton('Invalid Camera', function(){\r\n\t\t\tTi.Media.switchCamera(undefined);\r\n\t\t});\r\n\t\t\r\n\t\t// open window\r\n\t\t win.open();\r\n\r\n\r\n{code}\r\n2. Press \"Default Camera\"\r\n3. Press Cancel and observe the button on the bottom of the screen\r\n\r\nNote:\r\nAdding 'top : 5 to the properties\r\nvar button = Ti.UI.createButton({title:title, width:'300', height:'50'});\r\n\r\nwill fix this issue.", "attachment": [ { "id": "35606", "filename": "defaultcamerabutton.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-15T21:23:14.000+0000", "size": 39526, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Media - Default Camera button is moving down the screen ", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 3.0.2.201302141201\r\nTitanium SDK, build: 3.0.2.v20130207164659 \r\nXcode 4.6 \r\nDevices:\r\niPhone4 iOS 5.1.1\r\niPad mini iOS 6.0.2", "comment": { "comments": [ { "id": "426922", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 6 (10.2)\r\nStudio 4.9.1.201707200100\r\nTi SDK 6.1.2 GA\r\nAppc CLI 6.2.3\r\nTi CLI 5.0.14\r\nAlloy 1.9.13\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-18T21:56:06.000+0000", "updated": "2017-08-18T21:56:06.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }