{ "id": "121008", "key": "TIMOB-15441", "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": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15700", "description": "2013 Sprint 21 API", "name": "2013 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-17T17:52:37.000+0000", "created": "2013-10-09T19:04:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "32424", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "115954", "key": "TIMOB-14235", "fields": { "summary": "iOS: Support NSAttributedString", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-31T09:21:21.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": "The Label proxy has some sizing issues and needs to be revisited.\r\n1. ClipsToBounds is false so label text might overflow if content rect is larger than supplied bounds\r\n2. Attributed Strings are displaying weird behavior on iOS7. Need to investigate and fix.", "attachment": [], "flagged": false, "summary": "iOS: Fix Label sizing issues", "creator": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "274912", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Case for Link Event. Needs iOS7 or above\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 = 'Longpress on any of the following:\\n1.Appcelerator Titanium \\n2.Android \\n3.IOS ';\r\n \r\nvar attr = Ti.UI.iOS.createAttributedString({\r\n text: text,\r\n attributes: [\r\n {\r\n type: Ti.UI.iOS.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.iOS.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.iOS.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.iOS.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.iOS.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.iOS.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.iOS.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}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-12T21:56:26.000+0000", "updated": "2013-10-15T20:18:10.000+0000" }, { "id": "274913", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4782", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-12T22:01:19.000+0000", "updated": "2013-10-12T22:01:19.000+0000" }, { "id": "275442", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR Merged into master", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-17T17:53:02.000+0000", "updated": "2013-10-17T17:53:02.000+0000" }, { "id": "277482", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the fix with:\r\nOSX: 10.8.5\r\nXcode:5.0\r\nAppcelerator Studio: 3.2.0.201310300145\r\nSDK: 3.2.0.v20131029150357\r\nacs:1.0.7\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processo:1.0.3\r\nDevice: iOS7(v7.0.3)-iPodTouch1\r\n", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-31T09:21:21.000+0000", "updated": "2013-10-31T09:21:21.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }