{ "id": "99629", "key": "TIMOB-10566", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14127", "description": "Sprint 2012-19 API", "name": "Sprint 2012-19 API", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-18T13:28:46.000+0000", "created": "2012-08-22T16:21:51.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ImageView", "api", "parity", "qe-review", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20133", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "65021", "key": "TIMOB-3887", "fields": { "summary": "Android: Image taken in portrait orients itself to landscape ", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-09T19:53:31.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": "Android recently added a property called 'autorotate' which will rotate the image inside an image view based on the exif data of the image. iOS does this by default, but we want to add this property to be able to disable it. \r\n\r\nAndroid has this flag false by default, and iOS will have it true by default. Since there are performance implications on the Android side, we can't have the same default value.\r\n\r\nYou can use the following code with the attached image to test out this behavior:\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar image = Ti.UI.createImageView({\r\n\tautorotate: true,\r\n\timage: 's2.jpg'\r\n\r\n})\r\n\r\nwin.add(image);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "30668", "filename": "s2.jpg", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-22T16:21:51.000+0000", "size": 2323112, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: Add 'autorotate' property to imageview", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "218683", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Expanded test case\r\n{code}\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\ttitle:'AUTOROTATE - TRUE'\r\n});\r\nvar image1 = Ti.UI.createImageView({\r\n autorotate: true,\r\n image: 's2.jpg'\r\n})\r\n \r\nwin1.add(image1);\r\nvar win2 = Titanium.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\ttitle:'AUTOROTATE - FALSE'\r\n});\r\nvar image2 = Ti.UI.createImageView({\r\n autorotate: false,\r\n image: 's2.jpg'\r\n})\r\nwin2.add(image2);\r\nvar win3 = Titanium.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\ttitle:'AUTOROTATE - UNDEFINED'\r\n});\r\nvar image3 = Ti.UI.createImageView({\r\n image: 's2.jpg'\r\n})\r\nwin3.add(image3);\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\ttitle:'TAB1',\r\n\twindow:win1\r\n})\r\nvar tab2 = Ti.UI.createTab({\r\n\ttitle:'TAB2',\r\n\twindow:win2\r\n})\r\nvar tab3 = Ti.UI.createTab({\r\n\ttitle:'TAB3',\r\n\twindow:win3\r\n})\r\nvar tabGrp = Ti.UI.createTabGroup();\r\ntabGrp.addTab(tab1);\r\ntabGrp.addTab(tab2);\r\ntabGrp.addTab(tab3);\r\ntabGrp.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-12T12:34:10.000+0000", "updated": "2012-09-12T12:34:10.000+0000" }, { "id": "218685", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2924", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-12T12:48:13.000+0000", "updated": "2012-09-12T12:48:13.000+0000" }, { "id": "223657", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified feature works as expected.\r\nTesting environment:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121014234610\r\nDevice: Nexus 7 (4.1.2)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-15T21:05:43.000+0000", "updated": "2012-10-15T21:05:43.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }