{ "id": "128549", "key": "TIMOB-16793", "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": "15939", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15940", "description": "2014 Sprint 07 SDK", "name": "2014 Sprint 07 SDK", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-03T17:55:32.000+0000", "created": "2014-04-01T12:35:53.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_window", "qe-3.2.3", "qe-testadded", "regression" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [ { "id": "36375", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "103999", "key": "TIMOB-11586", "fields": { "summary": "iOS: Using the backgroundGradient property changes the order in which views are added", "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": "36376", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "123071", "key": "TIMOB-15855", "fields": { "summary": "iOS: dynamic zIndex value not being applied correctly", "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 } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-22T08:31:27.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": "1. Copy paste the code given below on app.js and run the app.\r\n\r\nExpected Result:\r\n1. Window gets open with label on it having text as\"I am the home window\"\r\n\r\nActual Result:\r\n1. Window opens up with black background. No label is visible\r\n\r\n\r\n{code}\r\nvar window_gradient = {\r\n\ttype:'linear',\r\n\tcolors:[\r\n\t\t{color:'#111',offset:0.0},\r\n\t\t{color:'#333',offset:0.7},\r\n\t\t{color:'#111',offset:1.0}\r\n\t]\r\n};\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundGradient:window_gradient, \r\n});\r\nvar label = Titanium.UI.createLabel({\r\n\tcolor:'blue',\r\n\ttext:'I am the home window',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\tbackgroundColor:\"yellow\"\r\n});\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\n\r\nWorking fine on android.\r\nIts a regression as working fine on 3.2.2.GA", "attachment": [], "flagged": false, "summary": "iOS: Window: backgroundGradient on window hides the text", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appc Studio: 3.2.3.201403271839\r\nSdk:3.2.3.v20140328110916\r\nalloy:1.3.1\r\ntitanium:3.2.3-alpha2\r\ntitanium-code-processor:1.1.1-alpha\r\nOsx: Maverick(10.9.2)\r\nDevice:iPad3(v7.1)", "comment": { "comments": [ { "id": "299643", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sabil, can you plead give your thoughts on this?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-02T20:30:48.000+0000", "updated": "2014-04-02T20:30:48.000+0000" }, { "id": "299733", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending \r\n3_2_X - https://github.com/appcelerator/titanium_mobile/pull/5576\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/5577", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-03T17:11:04.000+0000", "updated": "2014-04-03T17:51:11.000+0000" }, { "id": "299751", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Additional Test case : [TIMOB-11586]\n\n{code}\nvar win1 = Titanium.UI.createWindow({\n title : 'Tab 1',\n backgroundColor : '#fff'\n});\n \nvar g_backgroundGradient = {startPoint: {x:0, y:0}, endPoint: {x:400, y:600}, colors:['blue', 'orange'], type: 'linear'};\n \nvar backview = Titanium.UI.createView({\n backgroundGradient : g_backgroundGradient // <<< COMMENT OUT THIS LINE TO FIX PROBLEM\n});\n \nvar view1 = Titanium.UI.createView({\n backgroundColor : 'red',\n width : '300',\n height : '400',\n left : 15,\n top : 15,\n zindex : 10,\n});\n \nvar view2 = Titanium.UI.createView({\n width : '100',\n height : '70',\n left : 5,\n top : 5,\n backgroundColor : 'green',\n zindex : 1\n});\nbackview.add(view1);\nbackview.add(view2);\n \nwin1.add(backview);\n \nwin1.open(); \n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-03T17:51:26.000+0000", "updated": "2014-04-03T17:51:26.000+0000" }, { "id": "299783", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Using both the original sample code and Sabil's test case, verified backgroundGradient does not hide the label or other views.\n\nTested on:\n\nAppcelerator Studio, build: 3.2.3.201403271839\nSDK build: 3.2.3.v20140403105720, 3.3.0.v20140403105717 \nCLI: 3.2.3-alpha2\nAlloy: 1.3.1\nXcode: 5.1\nDevices: iphone 5 (6.1.3), iphone 5c (7.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-03T20:25:33.000+0000", "updated": "2014-04-03T20:25:33.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }