{ "id": "63985", "key": "TIMOB-3353", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-20T22:23:27.000+0000", "created": "2011-04-15T03:43:06.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-20T22:23: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": "{html}
\n//Using Titanium 1.6.1 on iOS 4.2\n\nvar row = Ti.UI.createTableViewRow();\nrow.hasChild = true;\n\nvar label = Ti.UI.createLabel({\ntext: \"Updating\",\ntextAlign: 'left',\nfont: {\n   fontSize: 13\n},\nbottom: 5,\nheight: 16,\nleft: 10, \nright: 50\n});\n\nrow.add(label);\n\n//update text after database query\n//Case 1:\nlabel.text = \"Some long text that would cause it to display on two lines\"\n\n//Case 2:\nlabel.text = \"Some short text\"\n\n//event called after a remote server updated our local info\n//this happens in a closure to keep a reference to label\nTi.App.addEventListener('someEvent', function(e) {\n    label.text = \"Some other long text to display possibly on two lines\"\n});\n\n// [More code not related ...]\n// Add row to a table view, and the table view to the current tab window\n
\n

Test results:
\nCase 1:
\nAt this moment as the view is attached to the window the label is\ndisplayed on two lines.

\n

The event is triggered, at a later time, the new text is put on\ntwo lines.

\n

Case 2:
\nAt this moment as the view is attached to the window the label is\ndisplayed on one line, since the text is short enough to fit on one\nline.

\n

The event is triggered, at a later time, the new text which too\nlong for a single ine is cut off and '...' attached to the end of\nthe text

\n

So it looks like the view will not grow automatically at a later\ntime. I don't know what the intended behavior is.
\nAnd I could not find any setting to choose a default behavior.

\n

I hope this is clear enough.
\nThank you for your time guys.

{html}", "attachment": [], "flagged": false, "summary": "Label with auto height shows a display inconsistency on text value update.", "creator": { "name": "radu.v", "key": "radu.v", "displayName": "Radu.V", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "radu.v", "key": "radu.v", "displayName": "Radu.V", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "422418", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress since 2011. The test case is also invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-20T22:23:27.000+0000", "updated": "2017-06-20T22:23:27.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }