{ "id": "104155", "key": "TIMOB-11610", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-13T19:46:49.000+0000", "created": "2012-10-30T22:20:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "layout", "module_scrollview", "parity", "qe-testadded", "triage" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [ { "id": "22524", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "104288", "key": "TIMOB-11640", "fields": { "summary": "Android: Remote Images inside a vertical ScrollView not scaling properly (only seen after closing and reopening the app couple of times)", "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": "2014-06-19T12:44:20.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": "When trying to add an imageView to a scrollView with a vertical layout, the imageView has a height that is much larger than the image that is displayed. The image is being scaled and displayed but there is a white blank space displayed above, below and around the image. It works fine on Android.\r\n\r\nh4.Steps to reproduce:\r\n1.Load the below app.js\r\n2.Run on a iOS Simulator/Device\r\n3.Run the same on Android Device\r\n\r\nExpected: There should be no space above the image like in android.\r\n\r\nActual Behavior: There is some empty space above and below the image\r\n\r\nh4.app.js:\r\n{code}\r\nvar detailWindow = Titanium.UI.createWindow({\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nvar detailScrollView = Ti.UI.createScrollView({\r\n\tlayout : 'vertical'\r\n});\r\n\r\nvar imageView = Ti.UI.createImageView({\r\n\timage : \"https://s3.amazonaws.com/static.tumblr.com/6t3upxl/Aawm08w0l/khout-kitten-458882.jpeg\",\r\n\ttop : '10dp'\r\n\r\n});\r\n\r\ndetailScrollView.add(imageView);\r\n\r\ndetailWindow.add(detailScrollView);\r\n\r\ndetailWindow.open(); \r\n\r\n\r\n{code}", "attachment": [ { "id": "33076", "filename": "Screenshot of Android when ScrollView layout is vertical.png", "author": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-30T22:20:14.000+0000", "size": 6277886, "mimeType": "image/png" }, { "id": "33075", "filename": "Screenshot of iOS with ScrollView layout vertical.png", "author": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-30T22:20:14.000+0000", "size": 131152, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS:Remote Images inside a vertical ScrollView not scaling properly", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 2.1.3, iOS 6, iOS 5.1, iOS 5", "comment": { "comments": [ { "id": "225872", "author": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-01T21:24:27.000+0000", "updated": "2012-11-01T21:24:27.000+0000" }, { "id": "226738", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The behavior of both iOS and android is incorrect\ncontentWidth and contentHeight are both undefined so the contents should stretch to show the full image", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-08T19:07:13.000+0000", "updated": "2012-11-08T19:07:13.000+0000" }, { "id": "226739", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3396", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-08T19:07:58.000+0000", "updated": "2012-11-08T19:07:58.000+0000" }, { "id": "234887", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.0.v20130114171802\r\nStudio:3.0.1.201212181159\r\nDevice: iPad2(v5.1), iphone3GS(v 5.0.1), iPad4(v 6.0)\r\n\r\nImages are scaled properly inside a vertical scrollview", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-18T02:18:47.000+0000", "updated": "2013-01-18T02:18:47.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }