{ "id": "100679", "key": "TIMOB-12091", "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-18T20:11:17.000+0000", "created": "2012-09-10T06:58:40.000+0000", "priority": null, "labels": [ "backgroundLeftCap", "backgroundtopcap", "label", "module_label", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-08T06:35:12.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": "it does not behave like a view because it has a different setBackgroundImage_implementation.\r\nPull request coming\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar size = Ti.UI.createLabel({\r\n\theight:100,\r\n\twidth:300,\r\n\ttext:\"THIS IS A TETS\"\r\n\t// backgroundLeftCap:40,\r\n\t// backgroundTopCap:8,\r\n});\r\nwin.add(size);\r\n\r\nvar xhr = Titanium.Network.createHTTPClient();\r\n\r\nxhr.onload = function()\r\n{\r\n\tvar f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'ti.png');\r\n\tf.write(this.responseData);\r\n\tsize.backgroundImage = f.nativePath;\r\n};\r\n// open the client (and test HTTPS)\r\nxhr.open('GET','http://cdn3.iconfinder.com/data/icons/ginux/Png/Forward-64.png');\r\n\r\n// send the data\r\nxhr.send();\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: label backgroundImage always use caps", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "titanium 2.2.0 (master)\r\nios 5.0.1", "comment": { "comments": [ { "id": "222490", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request https://github.com/appcelerator/titanium_mobile/pull/2932", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-10-08T13:00:13.000+0000", "updated": "2012-10-08T13:00:13.000+0000" }, { "id": "234715", "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: iphone3GS(v5.0.1)\r\n\r\nlabel background image does not use caps unless specified.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T02:48:55.000+0000", "updated": "2013-01-17T02:48:55.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }