{ "id": "89269", "key": "TIMOB-8449", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13400", "description": "Sprint 2012-12 Mobile Web", "name": "Sprint 2012-12 MW", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-06T10:33:15.000+0000", "created": "2012-03-30T11:45:53.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "16254", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "77849", "key": "TIMOB-4690", "fields": { "summary": "iOS: Add support for repeating backgrounds on a view that is similar to background-repeat property in CSS", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-06-13T15:48:33.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "PROBLEM\r\nA customer wants to create titled backgrounds, so they look the same in any platform, and they don't have to generate different background images for each different platform.\r\n\r\nThere is a screenshot showing the expected behavior. Additionally, you can see an example of code that will do the same effect, using insane amount of memory:\r\n\r\n{code:title=titledapp.js|borderStyle=solid}\r\nwin = Ti.UI.createWindow();\r\n\r\nvar background = Ti.UI.createView();\r\n\r\nvar image1 = Ti.UI.createImageView({\r\n // use whatever image you have here\r\n image: 'appicon.png',\r\n height: 'auto',\r\n width: 'auto'\r\n});\r\n \r\nvar width=image1.size.width;\r\nvar height=image1.size.height;\r\n\r\nvar deviceW= Titanium.Platform.displayCaps.platformWidth;\r\nvar deviceH= Titanium.Platform.displayCaps.platformHeight;\r\n\r\nvar repeatX = (deviceW % width) + 1; \r\nvar repeatY = (deviceH % height) + 1; \r\n\r\n\r\nfor(i=0;i