{ "id": "118006", "key": "AC-2096", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-08-06T21:26:14.000+0000", "created": "2013-08-06T01:29:24.000+0000", "labels": [ "android", "camera" ], "versions": [], "issuelinks": [ { "id": "30661", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "118005", "key": "TIMOB-14764", "fields": { "summary": "Android: Camera preview not full screen width when using overlay", "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": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41: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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "*Problem*\r\nWhen using an overlay with showCamera, the preview (where you see what the camera sees) doesn't stretch to the whole width of the screen. There is a ~5-10dp black bar on the left and right side of the preview screen.\r\n\r\nThe overlay view, however, does takes up the entire width of the screen.\r\n\r\n*Test case*\r\nNotice the red bar will be the entire width of the screen and the preview will stop short on the left and right.\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\nvar overlay = Ti.UI.createView({\r\n\tbackgroundColor : \"transparent\",\r\n\theight : Ti.UI.FILL,\r\n\twidth : Ti.UI.FILL\r\n});\r\n\r\noverlay.add(Ti.UI.createView({\r\n\tbackgroundColor : \"red\",\r\n\theight : 20,\r\n\twidth : Ti.UI.FILL\r\n}));\r\n\r\nwin.addEventListener('click', function() {\r\n\tTitanium.Media.showCamera({\r\n\t\toverlay : overlay,\r\n\t\tsaveToPhotoGallery : false,\r\n\t\tallowEditing : false,\r\n\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],\r\n\t\tshowControls : false,\r\n\t\tautohide : false\r\n\t});\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android camera preview not full screen width when using overlay", "creator": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Application type: mobile\r\nTitanium SDK: 3.2.0.v20130614230533\r\nPlatform & version: Android 4.0.3\r\nDevice: Galaxy Nexus\r\nHost Operating System: Windows 7\r\nTitanium Studio: 3.1.2.201307182008", "comment": { "comments": [ { "id": "265204", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate of TIMOB-14764.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-06T21:26:14.000+0000", "updated": "2013-08-06T21:26:14.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }