{ "id": "92155", "key": "TIMOB-9192", "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": "13502", "description": "Sprint 2012-14 Core", "name": "Sprint 2012-14 Core", "archived": true, "released": true, "releaseDate": "2012-07-15" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-05T12:21:46.000+0000", "created": "2012-05-22T12:27:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "module_window", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-11-27T18:07:39.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 a repeated background image is used and a @2x graphic is supplied for retina devices, the @2x image doesn't display correctly.\r\nh4. Repo Steps\r\n1. Run the below code in your app.js\r\n2. Copy the attached images to the resources folder of your project.\r\n3. In the BG Repeat tab you can see the pixellated image.\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'BG Repeat',\r\n backgroundImage:'bg.jpg',\r\n backgroundRepeat:true\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n title:'BG Repeat',\r\n window:win1\r\n});\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Image',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n title:'Image',\r\n window:win2\r\n});\r\n\r\nvar image2 = Titanium.UI.createImageView({\r\n\timage:'bg.jpg'\r\n});\r\n\r\nwin2.add(image2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n\r\n{code} ", "attachment": [ { "id": "27863", "filename": "bg.jpg", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T12:31:25.000+0000", "size": 1714, "mimeType": "image/jpeg" }, { "id": "27864", "filename": "bg@2x.jpg", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T12:31:25.000+0000", "size": 6866, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: Repeated background image (@2x version) doesn't display correctly on a retina device.", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 5\r\niPhone4\r\nTi SDK 2.0.1.GA2", "comment": { "comments": [ { "id": "199986", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "When will this be fixed? Becoming sort of annoying now...", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-24T11:17:16.000+0000", "updated": "2012-06-24T11:17:16.000+0000" }, { "id": "199994", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "^ +1", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2012-06-24T15:11:59.000+0000", "updated": "2012-06-24T15:11:59.000+0000" }, { "id": "199995", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have scheduled this ticket so we will get to it pretty soon.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-24T15:21:39.000+0000", "updated": "2012-06-24T15:21:39.000+0000" }, { "id": "201358", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR pending https://github.com/appcelerator/titanium_mobile/pull/2501", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-03T11:15:55.000+0000", "updated": "2012-07-03T11:15:55.000+0000" }, { "id": "201624", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolved on master by PR 2501", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-05T12:21:46.000+0000", "updated": "2012-07-05T12:21:46.000+0000" }, { "id": "215533", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Occurs on:\r\nTitanium Studio: 2.1.2.201208192014\r\nTitanium SDK: 2.1.2.v20120816171609\r\nDevice: iPad3 (v5.1)\r\nFixed with SDK: 2.2.0.v20120808154112", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-21T21:37:12.000+0000", "updated": "2012-08-21T21:37:12.000+0000" }, { "id": "228341", "author": { "name": "tw", "key": "tw", "displayName": "Thomas Weber", "active": true, "timeZone": "Europe/Berlin" }, "body": "Same issue occurs on Version 2.1.4GA if \"backgroundrepeat\" is set.\r\n(@2x images are scaled up)", "updateAuthor": { "name": "tw", "key": "tw", "displayName": "Thomas Weber", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-11-22T20:23:27.000+0000", "updated": "2012-11-22T20:23:27.000+0000" }, { "id": "228662", "author": { "name": "aarondfrancis", "key": "aarondfrancis", "displayName": "Aaron Francis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can confirm Thomas's comment that this issue is back in 2.1.4GA", "updateAuthor": { "name": "aarondfrancis", "key": "aarondfrancis", "displayName": "Aaron Francis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-27T18:07:39.000+0000", "updated": "2012-11-27T18:07:39.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }