{ "id": "132646", "key": "TIMOB-17627", "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": "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-12-17T22:07:51.000+0000", "created": "2014-07-07T02:53:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "TCSupport", "ios", "overlay", "rotate", "showCamera", "transform" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-07-10T11:53: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nA black stripe on the bottom when using showCamera with a parameter of scale 1 and overlay rotating 90 degree.\r\n\r\nThe code will show a black Stripe on the Bottom of the Screen and the app is in Landscape mode. Use a 2d matrix to transform the live view of the camera by scaling it 1 to 1.x or whatever scale you want to fill the screen. for me the camera previews full screen at scale 1.75.\r\n\r\nh4. Steps to reproduce\r\n1. Create new mobile project (classic titanium)\r\n2. Copy this code into app.js \r\n{code}\r\nvar container ={};\r\nvar overlayTransform = Ti.UI.create2DMatrix().rotate(90);\r\ncontainer.overlay = Titanium.UI.createView({transform:overlayTransform} );\r\nvar cameraTransform = Ti.UI.create2DMatrix();\r\ncameraTransform = cameraTransform.scale(1);\r\n\r\nTitanium.Media.showCamera(\r\n{\r\n success:function(event)\r\n {\r\n\r\n },\r\n cancel:function()\r\n {\r\n },\r\n error:function(error)\r\n {\r\n },\r\n autohide:false,\r\n overlay:container.overlay,\r\n showControls:false,\r\n transform:cameraTransform,\r\n});\r\n{code}\r\n3. Run it in device.", "attachment": [ { "id": "49490", "filename": "IMG_0010.PNG", "author": { "name": "raywoo", "key": "raywoo", "displayName": "Ray Woo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-07T02:53:16.000+0000", "size": 1072596, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Fix fullscreen transform for Camera", "creator": { "name": "raywoo", "key": "raywoo", "displayName": "Ray Woo", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "raywoo", "key": "raywoo", "displayName": "Ray Woo", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Host OS: Mac OS X\r\nOS Version: 10.9\r\nOS Arch: x86\r\nXCode Version: 5.1.1\r\nJRE Version: 1.6.0_65\r\nTitanium Studio Version: 3.2.3.201404181442\r\nTitanium SDK Version: 3.3.0.Beta and 3.2.3\r\nDeviceļ¼šiOS 6.x, 7.x", "closedSprints": [ { "id": 272, "state": "closed", "name": "2014 Sprint 25 SDK", "startDate": "2014-12-08T22:49:31.264Z", "endDate": "2014-12-22T01:00:00.000Z", "completeDate": "2015-01-05T18:18:28.523Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "312500", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi, \r\n\r\nCan you please tell me which version of your iphone device, as I can't reproduce your problem wiht iphone 4.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-07T07:18:58.000+0000", "updated": "2014-07-07T07:18:58.000+0000" }, { "id": "312506", "author": { "name": "raywoo", "key": "raywoo", "displayName": "Ray Woo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi\r\n I run the test app on the following two devices, both have this problem. Please pay attention to the bottom of the screen.\r\n1, iPod touch MC540, iOS 6.1.6\r\n2, iPhone 5S MF402, iOS 7.1.2\r\n\r\nThere's another iPhone 4S device with iOS 7.1.x which also has similar problem. ", "updateAuthor": { "name": "raywoo", "key": "raywoo", "displayName": "Ray Woo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-07T08:00:02.000+0000", "updated": "2014-07-07T08:02:52.000+0000" }, { "id": "322043", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "similar problem on an iPhone5 (iOS7):\r\n!http://www.migaweb.de/foto1.jpg! !http://www.migaweb.de/foto2.jpg! !http://www.migaweb.de/foto3.jpg!\r\n\r\nit looks like the black square is the space that it normally used for the buttons and if you set show controls to false it will move the image and the black border stays. ", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-05T15:49:37.000+0000", "updated": "2014-09-05T15:49:37.000+0000" }, { "id": "334066", "author": { "name": "Urban.Gerber@audatex.ch", "key": "urban.gerber@audatex.ch", "displayName": "Urban Gerber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same problem on iPad 2 and 4 when showControls = false and using pinch gesture for zooming in or out.\r\nSDK 3.4.0. iOS 8.1.1\r\n\r\nPlease consider fixing this soon, as we have customer complaints and no remedy.\r\n\r\n", "updateAuthor": { "name": "Urban.Gerber@audatex.ch", "key": "urban.gerber@audatex.ch", "displayName": "Urban Gerber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-28T14:11:19.000+0000", "updated": "2014-11-28T14:11:19.000+0000" }, { "id": "335094", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "I'm able to reproduce on an iPhone 6 with iOS 8.1.1, Ti 3.4.2.GA and iOS SDK 8.1", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2014-12-05T19:18:20.000+0000", "updated": "2014-12-05T19:18:20.000+0000" }, { "id": "336236", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Code\r\n{code}\r\nvar container ={};\r\nvar overlayTransform = Ti.UI.create2DMatrix().rotate(90);\r\ncontainer.overlay = Titanium.UI.createView({transform:overlayTransform} );\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white',\r\n orientationModes:[1,2,3,4]\r\n});\r\n\r\n\r\nvar label = Ti.UI.createLabel({text:'HELLO'});\r\nwin.add(label);\r\nwin.open();\r\n\r\nwin.addEventListener('click',function(){\r\n Titanium.Media.showCamera(\r\n {\r\n success:function(event)\r\n {\r\n \r\n },\r\n cancel:function()\r\n {\r\n },\r\n error:function(error)\r\n {\r\n },\r\n autohide:false,\r\n overlay:container.overlay,\r\n showControls:false\r\n });\r\n});\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-12T20:48:53.000+0000", "updated": "2014-12-12T20:48:53.000+0000" }, { "id": "336237", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6477\r\n\r\n3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6478\r\nreverting 3_5_X: https://github.com/appcelerator/titanium_mobile/pull/6499", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-12T20:50:36.000+0000", "updated": "2014-12-17T22:07:04.000+0000" }, { "id": "336238", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "If you want a full screen transform then do not set the transform property in the showCamera args and provide a overlay. If you specify a transform then that is the transform applied to the Camera Preview.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-12T20:51:40.000+0000", "updated": "2014-12-12T20:51:40.000+0000" }, { "id": "339947", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.6.0.v20150120095514\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\niPhone 6 (8.2b4)\r\n\r\nBuilt to device, when using the code attached there is no longer a black bar shown on the screen.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-01-20T18:58:19.000+0000", "updated": "2015-01-20T18:58:19.000+0000" }, { "id": "346646", "author": { "name": "raywoo", "key": "raywoo", "displayName": "Ray Woo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When will you plan to release SDK 3.6.0? this bug still exists in V3.5.1.", "updateAuthor": { "name": "raywoo", "key": "raywoo", "displayName": "Ray Woo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-20T03:29:16.000+0000", "updated": "2015-03-20T03:29:16.000+0000" }, { "id": "346685", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "It's been renamed to SDK 4.0.0\r\n\r\nAlso, the PR is simple enough, you could just drop the new MediaModule.m file right into a custom SDK and you're golden. I would recommend naming it something else, like \"3.5.1.PR\"", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2015-03-20T11:10:08.000+0000", "updated": "2015-03-20T11:10:08.000+0000" }, { "id": "346958", "author": { "name": "raywoo", "key": "raywoo", "displayName": "Ray Woo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, Shannon,\r\n I download SDK 4.1.0, copy the MediaModule.m file to SDK 3.5.0, build and run the app on iphone 6 using SDK 3.5.0, but the problem still exists. Would you please tell me what is wrong? thanks. ", "updateAuthor": { "name": "raywoo", "key": "raywoo", "displayName": "Ray Woo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-23T08:18:12.000+0000", "updated": "2015-03-23T08:18:12.000+0000" }, { "id": "357451", "author": { "name": "dean.joshevski@gmail.com", "key": "dean.joshevski@gmail.com", "displayName": "Dean", "active": true, "timeZone": "America/Los_Angeles" }, "body": "On SDK 4.1.0, when 'showControls' is set to 'false', while zooming, this issue still occurs: Black bar is displayed on the side, and viewing area is reduced. \r\nIt seams that background for not showing controls is still active and displayed", "updateAuthor": { "name": "dean.joshevski@gmail.com", "key": "dean.joshevski@gmail.com", "displayName": "Dean", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-10T11:53:04.000+0000", "updated": "2015-07-10T11:53:04.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }