{ "id": "98898", "key": "TIMOB-10354", "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": "13870", "description": "", "name": "Sprint 2012-16 API", "archived": true, "released": true, "releaseDate": "2012-08-13" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-14T11:15:20.000+0000", "created": "2012-08-08T14:42:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-port" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-03T16:42:12.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": "There is a problem rendering views on a camera overlay. Please find the image attached.\r\nh4. Repo Steps\r\n1. Run the below code in app.js\r\n2. Tap the \"Open Button\" and it will open the casmera with custom overlay.\r\n3. First time everything looks good. Tap the close button.\r\n4. Again tap the \"Open Button\" and now you'll see the icon on the shutter button will be moved above the close button. \r\n\r\n{code}\r\n/*jslint white:true plusplus:true nomen:true vars:true sloppy:true undef:false*/\r\n\r\nvar win1 = Titanium.UI.createWindow();\r\n\r\nvar openCameraButton = Titanium.UI.createButton({\r\n\ttitle : 'Open Camera',\r\n\twidth : 120,\r\n\theight : 40\r\n});\r\n\r\nwin1.add(openCameraButton);\r\n\r\nvar overlayView = Ti.UI.createView({\r\n\tbackgroundColor : 'transparent'\r\n});\r\n\r\nvar closeButton = Ti.UI.createButton({\r\n\ttitle : 'Close',\r\n\twidth : 60,\r\n\theight : 40,\r\n\tbottom : 0,\r\n\tleft : 0\r\n});\r\n\r\ncloseButton.addEventListener('click', function() {\r\n\tTi.Media.hideCamera();\r\n});\r\n\r\nvar shutterButton = Ti.UI.createButton({\r\n\ttouchEnabled : true,\r\n\twidth : 100,\r\n\theight : 40,\r\n\tbottom : 5\r\n});\r\nvar shutterButtonIcon = Ti.UI.createImageView({\r\n\timage : 'ShutterIcon.png',\r\n\twidth : 26,\r\n\theight : 21\r\n});\r\n\r\nshutterButton.add(shutterButtonIcon);\r\noverlayView.add(closeButton);\r\noverlayView.add(shutterButton);\r\n\r\nopenCameraButton.addEventListener('click', function() {\r\n\tTi.Media.showCamera({\r\n\t\tsuccess : function(event) {\r\n\t\t\tTi.API.info('Camera success event received.');\r\n\t\t},\r\n\t\tcancel : function(event) {\r\n\t\t\tTi.API.info('Camera cancel event received.', 2);\r\n\t\t},\r\n\t\terror : function(error) {\r\n\t\t\tTi.API.info('Camera error event received.', 2);\r\n\t\t},\r\n\t\toverlay : overlayView,\r\n\t\ttransform : Ti.UI.create2DMatrix(),\r\n\t\tallowEditing : false,\r\n\t\tsaveToPhotoGallery : false,\r\n\t\tmediaTypes : Ti.Media.MEDIA_TYPE_PHOTO,\r\n\t\tshowControls : false,\r\n\t\tautohide : false,\r\n\t\tanimated : true\r\n\t});\r\n});\r\n\r\nwin1.open();\r\n\r\n{code}", "attachment": [ { "id": "30368", "filename": "ShutterIcon.png", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-08T14:42:29.000+0000", "size": 3629, "mimeType": "image/png" }, { "id": "30373", "filename": "ShutterIcon 2.png", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-08T16:37:29.000+0000", "size": 3555, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Camera overlay rendering issues ", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 5 \r\niPhone 4\r\nTi SDK 2.0.1.GA2", "comment": { "comments": [ { "id": "213682", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2712", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T16:16:21.000+0000", "updated": "2012-08-09T16:16:21.000+0000" }, { "id": "213782", "author": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with\r\nTitanium Studio, build: 2.1.1.201207271312\r\nTitanium SDK, build: 2.2.0.v20120810080115\r\nDevice:\r\niPhone 4s (5.1.1)", "updateAuthor": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T10:13:13.000+0000", "updated": "2012-08-10T10:13:13.000+0000" }, { "id": "213841", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to adjust estimates", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T13:32:39.000+0000", "updated": "2012-08-10T13:32:39.000+0000" }, { "id": "213843", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing after adjusting estimates", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T13:33:33.000+0000", "updated": "2012-08-10T13:33:33.000+0000" }, { "id": "214368", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update Fixversion label to Release 2.1.2", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T11:14:51.000+0000", "updated": "2012-08-14T11:14:51.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }