{ "id": "169731", "key": "TIMOB-25253", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-12T13:31:31.000+0000", "created": "2017-09-08T09:59:47.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" }, { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [ { "id": "55909", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158029", "key": "TIMOB-22079", "fields": { "summary": "Ti.UI.Button Test Suite: Titanium.UI.Button Acceptance TIMOB-8936", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-09-18T10:03: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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nDefining a backgroundGradient without a startPoint or endPoint should default to a value\r\n\r\nDocs: https://github.com/appcelerator/titanium_mobile/blob/6f50122643f87a89523bf27af3186f597a9a55df/apidoc/Titanium/UI/View.yml#L1788\r\n\r\nAndroid: https://github.com/appcelerator/titanium_mobile/blob/a8aceeaeee02ed9c8ea70c835a0e78960e254a55/android/titanium/src/java/org/appcelerator/titanium/view/TiGradientDrawable.java#L29\r\n\r\niOS (I think): https://github.com/appcelerator/titanium_mobile/blob/8ab7ac87ef1663c4cd8b50afc59b3bea72f31d53/iphone/Classes/TiGradient.m#L210-L215\r\n\r\nNote that on Android the value stated in the docs doesn't give them same outcome as the default value, below is what obtains the default on Android It does work as expected on Windows\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar buttonAddFav = Titanium.UI.createButton({\r\n title: 'add2favs',\r\n backgroundGradient: {\r\n type: 'linear',\r\n startPoint: {x: 0.0, y: 0.0},\r\n endPoint: {x: 0.0, y: \"100%\"},\r\n colors: [{ color: '#aaa', offset: 0.0 }, { color: '#f00', offset: 0.25 }]\r\n }\r\n});\r\n_window.add(buttonAddFav);\r\n_window.open()\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above to an app.js and build for Windows\r\n# Comment out startPoint and endPoint\r\n\r\nh5.Actual\r\n\r\nAfter commenting the values out the gradient disappears\r\n\r\nh5.Expected\r\n\r\nThe gradient should stay the same after commenting the values out", "attachment": [], "flagged": false, "summary": "Windows: backgroundGradient should have a default startPoint and endPoint", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.1.2.GA, 6.2.0.v20170906064110, 7.0.0.v20170906135653", "closedSprints": [ { "id": 1073, "state": "closed", "name": "2018 Sprint 19 SDK", "startDate": "2018-09-09T21:02:56.422Z", "endDate": "2018-09-23T21:02:00.000Z", "completeDate": "2018-09-23T22:28:10.932Z", "originBoardId": 114 }, { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 }, { "id": 1070, "state": "closed", "name": "2018 Sprint 18 SDK", "startDate": "2018-08-26T16:14:35.297Z", "endDate": "2018-09-09T16:14:00.000Z", "completeDate": "2018-09-11T20:59:21.495Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "440577", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1279", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-08T09:11:00.000+0000", "updated": "2018-08-08T09:11:00.000+0000" }, { "id": "441504", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*FR passed* waiting on Master branch.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-12T13:31:09.000+0000", "updated": "2018-09-12T13:31:09.000+0000" }, { "id": "441645", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket. Fix verified in SDK version 7.5.0.v20180917031523.\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1279", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-18T10:03:06.000+0000", "updated": "2018-09-18T10:03:06.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }