{ "id": "91303", "key": "TIMOB-8982", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13407", "description": "Sprint 2012-11 API", "name": "Sprint 2012-11 API", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-05-22T16:14:31.000+0000", "created": "2012-05-03T17:07:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "17387", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:36: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": "In the example, \r\n\r\nwe have two adjacent labels and a view in window and we want the view that contains the two labels to size its height to the largest label. The first label contains text that should wrap onto multiple lines. Instead of doing that it ellipsizes the text.\r\n\r\nThis behavior was possible in 1.8 versions of the SDK.\r\n\r\n{code}var win = Ti.UI.createWindow({\r\n fullscreen : false,\r\n backgroundColor : 'white'\r\n});\r\n \r\nvar containerView1 = Ti.UI.createView({\r\n top : '0dp',\r\n left : '0dp',\r\n backgroundColor : 'green',\r\n height : Ti.UI.SIZE,\r\n width : Ti.UI.SIZE\r\n});\r\n \r\nvar label1 = Ti.UI.createLabel({\r\n text : 'BLAH BLAH BLAH BLAH BLAH!',\r\n top : '0dp',\r\n left : '0dp',\r\n textAlign : 'right',\r\n \twidth : '100dp',\r\n \r\n});\r\n \r\n \r\nvar label2 = Ti.UI.createLabel({\r\n text : 'BLAH BLAH!',\r\n top : '0dp',\r\n left : '108dp',\r\n\r\n});\r\n \r\n \r\ncontainerView1.add(label1);\r\ncontainerView1.add(label2);\r\n \r\nwin.add(containerView1);\r\n \r\nwin.open();{code}", "attachment": [ { "id": "27520", "filename": "Screen Shot 2012-05-03 at 10.25.34 AM.png", "author": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-03T17:07:20.000+0000", "size": 92638, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Ti.UI.SIZE on the view, does not work on its child labels, that need to wrap text", "creator": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 2.0.1\r\nPlatform OS: iOS\r\nPlatform OS Version: 5.1", "comment": { "comments": [ { "id": "195665", "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-05-22T16:14:31.000+0000", "updated": "2012-05-22T16:14:31.000+0000" }, { "id": "196897", "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:47.000+0000", "updated": "2012-06-01T14:19:47.000+0000" }, { "id": "414893", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate of the ticket that is mentioned above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:36:21.000+0000", "updated": "2017-03-22T20:36:21.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }