{ "id": "150029", "key": "AC-273", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-08-07T06:13:43.000+0000", "created": "2015-07-30T21:53:16.000+0000", "labels": [ "4.1.0", "android", "attributedString", "event", "link", "regression" ], "versions": [], "issuelinks": [ { "id": "48538", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "145086", "key": "TIMOB-18608", "fields": { "summary": "Android: Add \"link\" event to label for use with \"html\" and \"attributedString\" properties", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2015-08-07T06:18:09.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The same test case for TIMOB-18608 no longer works in 4.1.0.GA:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#ddd',\r\n fullscreen:true,\r\n layout:'vertical'\r\n});\r\n \r\nvar text = 'Tap on any of the following:\\n1.Appcelerator Titanium \\t2.Android \\t3.IOS';\r\n \r\nvar attr = Ti.UI.createAttributedString({\r\n text: text,\r\n attributes: [\r\n {\r\n type: Ti.UI.ATTRIBUTE_LINK,\r\n value: 'http://www.appcelerator.com/developers/',\r\n range: [text.indexOf('Appcelerator Titanium'), ('Appcelerator Titanium').length]\r\n },\r\n {\r\n type: Ti.UI.ATTRIBUTE_FONT,\r\n value: {textStyle:Ti.UI.TEXT_STYLE_HEADLINE},\r\n range: [text.indexOf('Appcelerator'), ('Appcelerator').length]\r\n },\r\n {\r\n type: Ti.UI.ATTRIBUTE_FONT,\r\n value: {textStyle:Ti.UI.TEXT_STYLE_SUBHEADLINE},\r\n range: [text.indexOf('Titanium'), ('Titanium').length]\r\n },\r\n {\r\n type: Ti.UI.ATTRIBUTE_LINK,\r\n value: 'http://developer.android.com/',\r\n range: [text.indexOf('Android'), ('Android').length]\r\n },\r\n {\r\n type: Ti.UI.ATTRIBUTE_FONT,\r\n value: {textStyle:Ti.UI.TEXT_STYLE_CAPTION1},\r\n range: [text.indexOf('Android'), ('Android').length]\r\n },\r\n {\r\n type: Ti.UI.ATTRIBUTE_LINK,\r\n value: 'https://developer.apple.com/',\r\n range: [text.indexOf('IOS'), ('IOS').length]\r\n },\r\n {\r\n type: Ti.UI.ATTRIBUTE_FONT,\r\n value: {textStyle:Ti.UI.TEXT_STYLE_CAPTION1},\r\n range: [text.indexOf('IOS'), ('IOS').length]\r\n },\r\n ]\r\n});\r\n \r\nvar label = Ti.UI.createLabel({\r\n backgroundColor: '#ccc',\r\n attributedString: attr,\r\n});\r\n \r\nlabel.addEventListener('link',function(e){\r\n alert(e.url);\r\n})\r\n \r\n \r\n \r\n \r\nvar container1 = Ti.UI.createView({width:Ti.UI.SIZE,height:Ti.UI.SIZE,layout:'horizontal'});\r\nvar b11 = Ti.UI.createButton({title:' W 200 '});\r\nvar b12 = Ti.UI.createButton({title:' W 300 '});\r\nvar b13 = Ti.UI.createButton({title:' W SIZE '});\r\ncontainer1.add(b11);\r\ncontainer1.add(b12);\r\ncontainer1.add(b13);\r\n \r\nvar container2 = Ti.UI.createView({width:Ti.UI.SIZE,height:Ti.UI.SIZE,layout:'horizontal'});\r\nvar b21 = Ti.UI.createButton({title:' H 200 '});\r\nvar b22 = Ti.UI.createButton({title:' H 300 '});\r\nvar b23 = Ti.UI.createButton({title:' H SIZE '});\r\ncontainer2.add(b21);\r\ncontainer2.add(b22);\r\ncontainer2.add(b23);\r\n \r\nvar container3 = Ti.UI.createView({width:Ti.UI.SIZE,height:Ti.UI.SIZE,layout:'horizontal'});\r\nvar b31 = Ti.UI.createButton({title:' Vert C '});\r\nvar b32 = Ti.UI.createButton({title:' Vert T '});\r\nvar b33 = Ti.UI.createButton({title:' Vert B '});\r\ncontainer3.add(b31);\r\ncontainer3.add(b32);\r\ncontainer3.add(b33);\r\n \r\nvar container4 = Ti.UI.createView({width:Ti.UI.SIZE,height:Ti.UI.SIZE,layout:'horizontal'});\r\nvar b41 = Ti.UI.createButton({title:' Hor L '});\r\nvar b42 = Ti.UI.createButton({title:' Hor C '});\r\nvar b43 = Ti.UI.createButton({title:' Hor R '});\r\ncontainer4.add(b41);\r\ncontainer4.add(b42);\r\ncontainer4.add(b43);\r\n \r\n//vertical = {center:0,top:1,bottom:2}\r\n//horizontal = {left:0,center:1,right:2}\r\n \r\n \r\nfunction clickHandler(e){\r\n if (e.source == b11) {\r\n label.width = 200;\r\n } \r\n if (e.source == b12) {\r\n label.width = 300;\r\n } \r\n if (e.source == b13) {\r\n label.width = Ti.UI.SIZE;\r\n } \r\n if (e.source == b21) {\r\n label.height = 200;\r\n } \r\n if (e.source == b22) {\r\n label.height = 300;\r\n } \r\n if (e.source == b23) {\r\n label.height = Ti.UI.SIZE;\r\n } \r\n if (e.source == b31) {\r\n label.verticalAlign = 0;\r\n } \r\n if (e.source == b32) {\r\n label.verticalAlign = 1;\r\n } \r\n if (e.source == b33) {\r\n label.verticalAlign = 2;\r\n } \r\n if (e.source == b41) {\r\n label.textAlign = 0;\r\n } \r\n if (e.source == b42) {\r\n label.textAlign = 1;\r\n } \r\n if (e.source == b43) {\r\n label.textAlign = 2;\r\n } \r\n}\r\n \r\nwin.addEventListener('click',clickHandler);\r\n \r\n \r\nwin.add(label);\r\nwin.add(container1);\r\nwin.add(container2);\r\nwin.add(container3);\r\nwin.add(container4);\r\n \r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "TiAPI: \"link\" event for Ti.UI.ATTRIBUTE_LINK no longer fired in 4.1.0.GA", "creator": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 4.1.0.GA\r\nPlatform: Android 5.1\r\nAppC Studio: 4.2.0.201507201802\r\nCLI: 4.1.2", "comment": { "comments": [ { "id": "359277", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-08-07T06:13:43.000+0000", "updated": "2015-08-07T06:13:43.000+0000" }, { "id": "359281", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hmrida], do you mean TIMOB-18608? TIMOB-18499 is closed, and is the feature ticket this bug report relates to, but is by no means a duplicate.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-07T06:18:09.000+0000", "updated": "2015-08-07T06:18:09.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }