{ "id": "99239", "key": "TIMOB-10597", "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-16T21:12:43.000+0000", "created": "2012-08-14T22:25:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-port" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [ { "id": "27828", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "109411", "key": "TIMOB-13351", "fields": { "summary": "iOS: ImageView height and width are ignored when images array is used (flipbook animation)", "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-04-15T23:09:56.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 an imageView is created with an \"images\" property, iOS no longer respects the width and height specified by the imageView. In my case the image is drawn much larger and off the screen. It may be rendering the image to it's actual size, rather than scaling it to the dimensions specified.\r\n\r\nWhen the imageView specified a single image via the \"image\" property (non plural) iOS scales the image properly.\r\n\r\nOn android imageViews will render the correct dimensions when either the \"image\" or \"images\" property is called. (Android works properly)", "attachment": [], "flagged": false, "summary": "iOS: Not scaling imageView when images property is assigned an array of images for animation", "creator": { "name": "climbd", "key": "climbd", "displayName": "Trevor Borgmeier", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "climbd", "key": "climbd", "displayName": "Trevor Borgmeier", "active": true, "timeZone": "America/Chicago" }, "environment": "iOS5\r\nTi 2.2.0v...(CI build)", "comment": { "comments": [ { "id": "215848", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Trevor, \r\nCan you please provide a reproducible sample test case?", "updateAuthor": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T11:46:44.000+0000", "updated": "2012-08-23T11:46:44.000+0000" }, { "id": "216015", "author": { "name": "climbd", "key": "climbd", "displayName": "Trevor Borgmeier", "active": true, "timeZone": "America/Chicago" }, "body": "Here is a sample in context to how I'm using it.\r\n\r\n{code:title=Sample Code|borderStyle=solid}\r\n\r\nvar loaderDimensions = {width:492,height:35,scale:1}, // these are the dimensions of the original image\r\n\tloaderMaxWidth = (2 * (Ti.Platform.displayCaps.platformWidth / 3)); // 2/3 of screen width\r\n\r\nloaderDimensions.scale = (loaderMaxWidth / loaderDimensions.width);\r\n\r\nloader = Ti.UI.createImageView({\r\n\ttop:0,\r\n\timages:[\r\n\t\t'/images/loaders/bar/1.png',\r\n\t\t'/images/loaders/bar/2.png',\r\n\t\t'/images/loaders/bar/3.png',\r\n\t\t'/images/loaders/bar/4.png',\r\n\t\t'/images/loaders/bar/5.png',\r\n\t\t'/images/loaders/bar/6.png',\r\n\t\t'/images/loaders/bar/7.png',\r\n\t\t'/images/loaders/bar/8.png',\r\n\t\t'/images/loaders/bar/9.png',\r\n\t\t'/images/loaders/bar/10.png'\r\n\t],\r\n\twidth:(loaderDimensions.width * loaderDimensions.scale),\r\n\theight:(loaderDimensions.height * loaderDimensions.scale),\r\n\tduration:50,\r\n\trepeatCount:0\r\n});\r\n\r\nTi.API.info('Loader Dimensions: ' + loader.width + ' x ' + loader.height);\r\n\r\n{code}\r\n\r\nTi.API.info returns \"[INFO] Loader Dimensions: 213.33333333333334 x 15.176151761517616\"\r\n\r\nOn iOS, the image appears to draw at full scale width:492,height:35 rather than the dimensions specified. I know it worked properly in an earlier version and it does work on android. Let me know if you want me to send you the images I'm using.", "updateAuthor": { "name": "climbd", "key": "climbd", "displayName": "Trevor Borgmeier", "active": true, "timeZone": "America/Chicago" }, "created": "2012-08-24T10:02:22.000+0000", "updated": "2012-08-24T10:04:18.000+0000" }, { "id": "226193", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3379", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T20:57:56.000+0000", "updated": "2012-11-05T20:57:56.000+0000" }, { "id": "235326", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nStudio: 3.0.1.201212181159\r\nSDK: 3.1.0.v20130114171802\r\niOS Device: iPhone Simulator (v6.0), iPhone 4S (v5.1)\r\nXCode: 4.5.2 ", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T11:31:36.000+0000", "updated": "2013-01-22T11:31:36.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }