{ "id": "88770", "key": "TIMOB-8282", "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": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-02T12:39:07.000+0000", "created": "2012-03-24T13:43:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "parity", "qe-and031912", "qe-nfc" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-07T07:24:32.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Steps to reproduce:\r\n1. Run following code on Android:\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow();\r\nwin.backgroundColor = 'white';\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'Pass if table view row width fills and height sizes to the content',\r\n\ttop: 20,\r\n\tleft: 10,\r\n\theight: 'auto',\r\n\twidth: 'auto',\r\n\tcolor: 'black'\r\n});\r\nvar table = Titanium.UI.createTableView({\r\n\ttop: 50\r\n});\r\nwin.add(table);\r\n\r\nvar row = Titanium.UI.createTableViewRow();\r\nvar row1 = Titanium.UI.createTableViewRow();\r\nvar row2 = Titanium.UI.createTableViewRow();\r\nvar row3 = Titanium.UI.createTableViewRow();\r\n\r\nvar view1 = Titanium.UI.createView({backgroundColor:'red',width:50,height:20});\r\nvar view2 = Titanium.UI.createView({backgroundColor:'red',width:50,height:50});\r\nvar view3 = Titanium.UI.createView({backgroundColor:'red',width:50,height:100});\r\n\r\nrow1.add(view1);\r\nrow2.add(view2);\r\nrow3.add(view3);\r\ntable.appendRow(row);\r\ntable.appendRow(row1);\r\ntable.appendRow(row2);\r\ntable.appendRow(row3);\r\n\r\nwin.add(label);\r\n\r\nwin.open();\r\n{code}\r\n\r\nActual: Top TableViewRow does not constrain to height of content. See attachment.\r\nExpected: Top TableViewRow should constrain to height of content.\r\n\r\nNote: Above code works as expected on iOS", "attachment": [ { "id": "26579", "filename": "android.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T13:43:33.000+0000", "size": 32852, "mimeType": "image/png" }, { "id": "26578", "filename": "ios.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T13:43:33.000+0000", "size": 54082, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TableViewRow - TableViewRow does not shrink to height of content", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 2.0.0.v20120323221800\r\nRuntime: v8, rhino\r\nTitanium Studio, build: 2.0.0.201203240504\r\nDevice: Galaxy Nexus (4.0.2)", "comment": { "comments": [ { "id": "188648", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also occurs on:\r\nDevice: Android Nexus S (2.3.6)\r\nTitanium Studio, build: 2.0.0.201203262445\r\nSDK: 2.0.0.v20120325213306", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T12:53:41.000+0000", "updated": "2012-03-26T12:53:41.000+0000" }, { "id": "188650", "author": { "name": "sshylaja", "key": "sshylaja", "displayName": "Sitara Shylaja", "active": true, "timeZone": "America/Los_Angeles" }, "body": "this also occurs on Android Nexus 1(2.2.2) on\r\n\r\nTitanium mobilesdk-2.0.0.v20120325213306\r\nTitanium Studio build: 2.0.0.201203262445", "updateAuthor": { "name": "sshylaja", "key": "sshylaja", "displayName": "Sitara Shylaja", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T12:53:53.000+0000", "updated": "2012-03-26T12:53:53.000+0000" }, { "id": "188664", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also occurs on Kindle Fire and Nook Color\r\nTitanium SDK: 2.0.0.v20120325213306\r\nTitanium Studio, build: 2.0.0.201203262445", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T13:29:01.000+0000", "updated": "2012-03-26T13:29:01.000+0000" }, { "id": "197652", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Adding environment information\r\nTested with Titanium SDK: 2.1.0.v20120606165259\r\nTested with Titanium Studio: 2.1.0.201206051612\r\nDevice: Android 2.2 and 4.0\r\nAndroid Runtime: V8", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-07T07:24:32.000+0000", "updated": "2012-06-07T07:24:32.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }