{ "id": "94016", "key": "TIMOB-9824", "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": "13573", "description": "Sprint 2012-15 API", "name": "Sprint 2012-15 API", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "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-09-06T04:41:47.000+0000", "created": "2012-06-27T15:06:19.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_view", "parity", "qe-review", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "18995", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "95031", "key": "TIMOB-10015", "fields": { "summary": "Android: Gradient colors offset property, when unspecified, crashes app", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19326", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "63275", "key": "TIMOB-2643", "fields": { "summary": "ScrollableView default values - regression", "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 } } } }, { "id": "19328", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "63289", "key": "TIMOB-2657", "fields": { "summary": "modal window + navBarHidden: true = Bug", "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 } } } }, { "id": "19327", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "63279", "key": "TIMOB-2647", "fields": { "summary": "iOS: view.animate() callback not always invoked", "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": "Trivial", "id": "5" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-09-06T04:41:47.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "We need to define the default behavior for when no \"colors\" property is specified\r\nin the backgroundGradient object.\r\n\r\nRight now on iOS if you specify no value, there will be no visible gradient.\r\nOn Android not setting this property to an array causes a Java exception.\r\n\r\nWe should agree on the \"correct\" behavior and document it.", "attachment": [], "flagged": false, "summary": "API: backgroundGradient \"colors\" default value", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209127", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "On mobile web not specifying a value also causes no visible gradient, like IOS.", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-24T09:27:02.000+0000", "updated": "2012-07-24T09:27:02.000+0000" }, { "id": "209318", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request https://github.com/appcelerator/titanium_mobile/pull/2636", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T10:04:02.000+0000", "updated": "2012-07-25T10:04:02.000+0000" }, { "id": "209319", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here's the test code from TIMOB-10015.\r\n\r\nSteps to reproduce (prior to the fix):\r\n\r\n(1) Remove the colors property from the code below, and run.\r\n\r\nExpected behavior:\r\n\r\nView with red/white gradient is not displayed.\r\n\r\nActual behavior:\r\n\r\nApp crashes.\r\n\r\n{code}\r\nvar win1=Ti.UI.createWindow({\r\n layout:'vertical',\r\n backgroundColor:'gray',\r\n exitOnClose:true,\r\n navBarHidden:true\r\n });\r\n \r\nvar view1=Ti.UI.createView({\r\n height:100,\r\n width:100,\r\n backgroundGradient:{type:'linear',\r\n endPoint:{ x:0, y:'100%' },\r\n colors:[ {color:'white' /*, offset:0.0*/ },\r\n {color:'red' /*, offset:1.0*/ } ]}\r\n });\r\nwin1.add(view1);\r\n \r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T10:05:51.000+0000", "updated": "2012-07-26T16:51:18.000+0000" }, { "id": "210187", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\nIf colors are not specified in a backgroundGradient, IOS, Android and mobile\r\nweb behave the same way -- the view is not displayed.\r\n\r\nHowever, it appears that backgroundGradient does not work as expected on mobile\r\nweb. The test case included in this bug causes a solid red box to be displayed\r\nin mobile web.", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-27T09:14:43.000+0000", "updated": "2012-07-27T11:22:17.000+0000" }, { "id": "217134", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nSDK:2.2.0.v20120830182512\r\nStudio:2.2.0.v20120830182512\r\nDevices: iOS simulator, Samsung galaxy tab(android v 3.2), mobile web in browser\r\n\r\nNow, the color gradient is shown on iOS and android whereas Red color block is being shown on mobile web.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-31T04:05:41.000+0000", "updated": "2012-08-31T04:05:41.000+0000" }, { "id": "217796", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-06T04:41:17.000+0000", "updated": "2012-09-06T04:41:17.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }