{ "id": "89541", "key": "TIMOB-8548", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-02T11:16:39.000+0000", "created": "2012-04-05T06:32:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:28:42.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": "h3. Description:\r\nAdding a label to a tableview row gives a console warning about the layout of the label and the row _if_ the label has a margin.\r\n\r\nh3. Sample code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#ccc'\r\n});\r\n\r\nvar table = Ti.UI.createTableView({\r\n\trowHeight:44\t\r\n});\r\n\r\nvar row = Ti.UI.createTableViewRow();\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext:'Hello World',\r\n\twidth:Ti.UI.SIZE,\r\n\theight:Ti.UI.SIZE,\r\n\tbackgroundColor:'white',\r\n\tleft:20 // removing the left property will make the warnings go away\r\n})\r\n\r\nrow.add(label);\r\n\r\ntable.setData([row]);\r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n\r\nh3. Console warnings:\r\n{code}\r\n[WARN] [object TiUILabel] has an auto height value of 0, meaning this view may not be visible.\r\n\r\n[WARN] [object TiUITableViewRow] has an auto height value of 0, meaning this view may not be visible.\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS - Console warning of height of label inside a table view row", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 2.0.0.v20120330103228\r\n", "comment": { "comments": [ { "id": "199070", "author": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A workaround for this is to disable this output directly modifying the titanium SDK. For anyone interested, edit file TiUIViewProxy.m in Titanium mobile sdk folder.\r\nInside the file, you can look for the phrase \"has an auto\" . In Titanium 2.0.2 there are 2 coincidences in lines 689 and 782 (one for height and one for width). Comment these lines to hide the annoying message.", "updateAuthor": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-19T02:27:36.000+0000", "updated": "2012-06-19T02:27:36.000+0000" }, { "id": "245158", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T11:16:39.000+0000", "updated": "2013-04-02T11:16:39.000+0000" }, { "id": "414447", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:28:42.000+0000", "updated": "2017-03-21T21:28:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }