{ "id": "113195", "key": "TIMOB-13643", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-26T22:43:43.000+0000", "created": "2013-04-22T17:18:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "27994", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "111832", "key": "TIMOB-13243", "fields": { "summary": "iOS: ImageView - Image changes its position on the screen if orientation is changed", "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": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-26T22:43:43.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: 'flower.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": "37714", "filename": "flower.jpg", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T17:33:42.000+0000", "size": 17766, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: ImageView - Image changes its position on the screen if zoomScale is greater than 1", "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": "422897", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T22:43:43.000+0000", "updated": "2017-06-26T22:43:43.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }