{ "id": "90522", "key": "AC-3045", "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": "2012-05-29T17:03:13.000+0000", "created": "2012-04-18T14:13:46.000+0000", "labels": [ "ios", "iphone", "studio" ], "versions": [], "issuelinks": [ { "id": "17540", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "91399", "key": "TIMOB-9002", "fields": { "summary": "iOS: Review and fix external error and warning messages", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:48:05.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": "I have read the entire Transitioning to the New UI Layout System, particularly the section about Auto Sizes in iOS. From what I understand Labels with undefined sizes will use Ti.UI.SIZE, which makes sense. Now, if I try to pin that label to the left side of it's parent, I get [WARN] [object TiUILabel] has an auto height value of 0, meaning this view may not be visible..\r\nI tried setting height:Ti.UI.SIZE to no avail. The document says \"In most cases, simply leaving the width and height undefined should give reasonable default behavior for all view types, which was not always true in previous releases.\". I know I can implicitly set height:30 but in previous releases height:'auto' worked great and the new height:Ti.UI.SIZE is giving the warning. \r\n\r\nThe label looks exactly as I would expect with height:Ti.UI.SIZE OR with the height not defined at all, but I just get that warning. It seems like Titanium should only throw that warning if height:'auto' and there is not content in the view (or in this case, the Label).\r\n\r\nCode to reproduce:\r\n{code:javascript} \r\nvar parentView = Ti.UI.createView({\r\n backgroundColor:'red',\r\n height:44,\r\n width:320\r\n});\r\n \r\nvar testLabel = Ti.UI.createLabel({\r\n backgroundColor:'yellow',\r\n text:'This is a test...',\r\n left:10\r\n});\r\nparentView.add(testLabel);\r\nwin.add(parentView);\r\n{code} \r\n", "attachment": [], "flagged": false, "summary": "Pinning a Label to one side with no sizes defined generates a warning in 2.0.1", "creator": { "name": "d4v1d", "key": "d4v1d", "displayName": "David Knell", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "d4v1d", "key": "d4v1d", "displayName": "David Knell", "active": true, "timeZone": "America/New_York" }, "environment": "Mac OS X 10.7.3, Titanium Studio 2.0.1, Mobile SDK 2.0.1GA2, iPhone Simulator, iOS SDK 5.0", "comment": { "comments": [ { "id": "281006", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:29:54.000+0000", "updated": "2013-11-24T22:29:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }