{ "id": "111832", "key": "TIMOB-13243", "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": "15400", "description": "2013 Sprint 08 API", "name": "2013 Sprint 08 API", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15106", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-03T17:57:47.000+0000", "created": "2013-03-28T12:30:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_imageview", "qe-3.1.0", "qe-testadded" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "27240", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "92347", "key": "TIMOB-9260", "fields": { "summary": "iOS: Image positions to the top/left corner after zooming/pinching", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "27994", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "113195", "key": "TIMOB-13643", "fields": { "summary": "iOS: ImageView - Image changes its position on the screen if zoomScale is greater than 1", "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": "High", "id": "2" }, "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-07-24T11:16:29.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": "Image changes its position on the screen if orientation is changed. This is not regression since the issue occurs on 3.0.2 GA as well.\r\n\r\nSteps to reproduce:\r\n1. Create an app using the code below.\r\n2. Launch the test app.Wait for the image to load.\r\n3. Change Orientation to landscape and then again to portrait.\r\n\r\nActual:\r\nThe position of the image is changed on the screen.\r\n\r\nExpected:\r\nPosition of the image should be same on the screen.\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nvar scrollView = Ti.UI.createScrollView({\r\n maxZoomScale: 3,\r\n contentWidth: 'auto',\r\n contentHeight: 'auto'\r\n});\r\n \r\nvar img = Ti.UI.createImageView({\r\n image: 'photo.jpg',\r\n width:Ti.UI.SIZE,\r\n hight: Ti.UI.SIZE\r\n});\r\n \r\nfunction onImageLoad(e) {\r\n var scaleWidth = win.size.width / img.size.width;\r\n var scaleHeight = win.size.height / img.size.height;\r\n // Set the initial ZoomScale\r\n // And the MinZoomScale\r\n scrollView.zoomScale = scrollView.minZoomScale = Math.min(scaleWidth, scaleHeight);\r\n}\r\n \r\nimg.addEventListener('load', onImageLoad);\r\n \r\nscrollView.add(img);\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "36734", "filename": "photo.jpg", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-28T12:30:25.000+0000", "size": 467187, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: ImageView - Image changes its position on the screen if orientation is changed", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.1.0.v20130327135307\r\nStudio:3.0.2.201302191606\r\nDevice: iPad mini(v 6.0)\r\nOS: OSX 10.7.5", "comment": { "comments": [ { "id": "245092", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/4063\r\n3_1_X PR https://github.com/appcelerator/titanium_mobile/pull/4080", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T23:59:05.000+0000", "updated": "2013-04-04T18:24:25.000+0000" }, { "id": "247962", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4188", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-17T17:54:10.000+0000", "updated": "2013-04-19T20:14:05.000+0000" }, { "id": "248625", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR & FR ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T17:38:17.000+0000", "updated": "2013-04-22T17:38:17.000+0000" }, { "id": "248654", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_1_X\nhttps://github.com/appcelerator/titanium_mobile/pull/4203", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T18:52:06.000+0000", "updated": "2013-04-22T18:52:06.000+0000" }, { "id": "250063", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue still occurs with the following environment:\n\nSDK:3.1.1.v20130502180055\nAppcelerator Studio: 3.1.1.201305020729\nOS: OSX 10.7.5\nDevice: iPadMini(6.0)\nXcode: 4.6", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-03T09:49:56.000+0000", "updated": "2013-05-03T09:49:56.000+0000" }, { "id": "250096", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "make sure you are using the actual image (1600 × 1200 resolution) and not the thumbnail image. There is another ticket(TIMOB-13643) linked to this one which deals with smaller images not being positioned correctly. \n\nCannot reproduce the issue marking ticket back to resolved status. Please re-test. \n\nChecked on \nSDK : 3.1.1.v20130502180055\nTiStudio : 3.1.1.201304161846\nOS: OSX 10.8\nDevice: iPadMini(6.0)\nXcode: 4.6 ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-03T17:57:33.000+0000", "updated": "2013-05-03T17:57:33.000+0000" }, { "id": "250525", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.1.v20130503173050\r\nAppcelerator Studio: 3.1.1.201305031846\r\nOS: OSX 10.7.5\r\nDevice: iPadmini(v 6.0)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T08:59:21.000+0000", "updated": "2013-05-07T08:59:21.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }