{ "id": "91003", "key": "TIMOB-9103", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-06-01T10:32:56.000+0000", "created": "2012-04-29T09:27:03.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "17587", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "89953", "key": "TIMOB-8713", "fields": { "summary": "iOS: Label not resizing properly when in ScrollView", "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 } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:37:24.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": "h4. Problem Description\r\nI noticed this behavior in an app I began developing with 1.8 when I upgraded to 2.0. I have a tableview that contains rows which each contain a label. The labels are of varying sizes and may span multiple lines. Sometimes, a label is truncated with ellipses (not the desired behavior). If a few more characters are added, the label displays the entire text (as I would expect) by adding an additional line.\r\n\r\nh4. Actual Results\r\nThe label does not expand to fill two lines and is thus truncated with ellipses.\r\n\r\nBUT, if I change the text of the label and make it SLIGHTLY longer to \"I am a label that contains a lot of text.\", the label correctly expands to fill two lines and display all of the text.\r\n\r\n\r\n\r\nh4. Expected Results\r\nLabel should expand if allowed. \r\n\r\nh4. Test Case \r\n1. Mobile Project\r\n2. Add this to app.js\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Window',\r\n backgroundColor:'#fff'\r\n});\r\n \r\nvar label1 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am a label that contains text.',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'left',\r\n width: 250,\r\n height: Ti.UI.SIZE,\r\n backgroundColor: 'yellow',\r\n});\r\n \r\nwin1.open();\r\n \r\ntableview = Titanium.UI.createTableView({\r\n top : 0,\r\n //left: 0,\r\n allowsSelection : true,\r\n width : Ti.UI.FILL,\r\n height: Ti.UI.FILL,\r\n data : [],\r\n style : Titanium.UI.iPhone.TableViewStyle.PLAIN,\r\n backgroundColor : 'white',\r\n border: 1,\r\n});\r\n \r\n//win1.add(label1);\r\nrow = Ti.UI.createTableViewRow();\r\nrow.add(label1);\r\nrow.height = Ti.UI.SIZE;\r\nvar data = new Array();\r\ndata[0] = row;\r\ntableview.setData(data);\r\nwin1.add(tableview);\r\n{code}\r\n\r\n\r\nh4. Extra info \r\n\r\nIt should be noted that labels placed directly in a view (not in a tableview) correctly expand to the correct height all of the time when height is set to Ti.UI.SIZE. The unusual and undesired behavior exists only when the label is placed in a tableview.\r\n\r\n(Also, setting the height of the tableviewrow does not effect how the label appears.)", "attachment": [], "flagged": false, "summary": "iOS: Labels placed in tableview do not exhibit correct behavior when height is Ti.UI.SIZE", "creator": { "name": "lukebar", "key": "lukebar", "displayName": "Luke Bartolomeo", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "lukebar", "key": "lukebar", "displayName": "Luke Bartolomeo", "active": true, "timeZone": "America/Chicago" }, "environment": "iOS 5.1, Appcelerator 2.0.1 GA2", "comment": { "comments": [ { "id": "194481", "author": { "name": "rmarscher", "key": "rmarscher", "displayName": "Rob Marscher", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Experiencing this exact issue. Also see discussion at http://developer.appcelerator.com/question/136177/label-does-not-exhibit-correct-multiline-behavior-inside-of-tableview-20", "updateAuthor": { "name": "rmarscher", "key": "rmarscher", "displayName": "Rob Marscher", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T20:40:25.000+0000", "updated": "2012-05-10T20:40:25.000+0000" }, { "id": "196685", "author": { "name": "shebby", "key": "shebby", "displayName": "Shebin Rawther", "active": true, "timeZone": "Europe/London" }, "body": "I am also experiencing the exact same issue. Any updates on this one yet?", "updateAuthor": { "name": "shebby", "key": "shebby", "displayName": "Shebin Rawther", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-31T04:30:43.000+0000", "updated": "2012-05-31T04:30:43.000+0000" }, { "id": "196857", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-8713", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-01T10:32:56.000+0000", "updated": "2012-06-01T10:32:56.000+0000" }, { "id": "196898", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fix Back ported to 2_0_X by [PR2305|https://github.com/appcelerator/titanium_mobile/pull/2305] and the fix should be available on 2_0_X branch from commit [a43004b8e|https://github.com/appcelerator/titanium_mobile/commit/a43004b8eb830edfb22f8ef21f3d37ac1e6ab9f0]", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-01T14:19:54.000+0000", "updated": "2012-06-01T14:19:54.000+0000" }, { "id": "196899", "author": { "name": "rmarscher", "key": "rmarscher", "displayName": "Rob Marscher", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you!!!", "updateAuthor": { "name": "rmarscher", "key": "rmarscher", "displayName": "Rob Marscher", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-01T14:31:37.000+0000", "updated": "2012-06-01T14:31:37.000+0000" }, { "id": "415695", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the linked issues.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:37:24.000+0000", "updated": "2017-03-24T18:37:24.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }