{ "id": "89860", "key": "TIMOB-8689", "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": "13408", "description": "Sprint 2012-12 API", "name": "Sprint 2012-12 API", "archived": true, "released": true, "releaseDate": "2012-06-17" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14166", "description": "2012 Sprint 21 Core", "name": "2012 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-13T00:36:47.000+0000", "created": "2012-04-11T15:25:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "core", "module_tableviewrow", "qe-and090112", "qe-and100112", "qe-review", "qe-testadded", "regression" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "17531", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "92294", "key": "TIMOB-9226", "fields": { "summary": "Android: Review composite layout feature requests", "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": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-12-21T19:41:33.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": "Setting height to Ti.UI.SIZE on a tableview row causes the row to not display.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#000',\r\n});\r\n\r\nvar table = Ti.UI.createTableView({\r\n\t\tbackgroundColor:'transparent',\r\n\t\tseparatorColor:'transparent',\r\n});\r\n\r\nvar varHeightRow = Ti.UI.createTableViewRow({\r\n\tbackgroundColor:'#FFF',\r\n\theight:Ti.UI.SIZE,\r\n\tlayout:'vertical',\r\n\tselectionStyle:Titanium.UI.iPhone.TableViewCellSelectionStyle.NONE\r\n});\r\n\r\nvar rowContent = Ti.UI.createView({\r\n\theight:20,\r\n\tleft:5,\r\n\tright:5,\r\n\ttop:10,\r\n\tbottom:10,\r\n\tborderColor:'#C00',\r\n\tborderWidth:1,\r\n});\r\n\r\nvar contentContent = Ti.UI.createLabel({\r\n\tbackgroundColor: 'white',\r\n\ttext:'This is a test'\r\n});\r\n\r\nrowContent.add(contentContent);\r\n\r\nvarHeightRow.add(rowContent);\r\n\r\ntable.appendRow(varHeightRow);\r\nwin.add(table);\r\n\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Setting height to Ti.UI.SIZE on a TableViewRow causes the row to not display", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": "Titanium SDK: Mobile 2.0.1\r\nPlatform OS: Android\r\nPlatform OS Version: 2.2", "comment": { "comments": [ { "id": "193168", "author": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also observed with a customer. His code sample.\r\n{code}var win = Ti.UI.createWindow({\r\n fullscreen : false,\r\n backgroundColor : 'white'\r\n});\r\n \r\nvar tableView = Ti.UI.createTableView({\r\n top : 0,\r\n bottom : 0,\r\n right : 0,\r\n left : 0\r\n});\r\n \r\nvar rows = [];\r\n \r\nvar tableViewRow1 = Ti.UI.createTableViewRow({\r\n height : 'auto'\r\n});\r\n \r\nvar tableViewRow2 = Ti.UI.createTableViewRow({\r\n height : Ti.UI.SIZE\r\n});\r\n \r\n \r\nvar label = Ti.UI.createLabel({\r\n text : 'BLAH BLAH!',\r\n top : '0dp',\r\n left : '108dp',\r\n height : Ti.UI.SIZE\r\n});\r\n \r\ntableViewRow1.add(label);\r\ntableViewRow2.add(label);\r\n \r\nrows.push(tableViewRow1);\r\nrows.push(tableViewRow2);\r\n \r\ntableView.data = rows;\r\n \r\nwin.add(tableView);\r\n \r\nwin.open();{code}", "updateAuthor": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T11:32:25.000+0000", "updated": "2012-04-30T11:32:25.000+0000" }, { "id": "197161", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2320", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-04T16:06:45.000+0000", "updated": "2012-06-04T16:06:45.000+0000" }, { "id": "198564", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Droid 3 2.3.4 and Emulator 2.2 with 2.1.0.v20120614102250", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T15:05:49.000+0000", "updated": "2012-06-14T15:05:49.000+0000" }, { "id": "219857", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue. Tested on:\r\nOS: Mac OS X Lion 10.7.4 \r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK, build: 2.1.3.v20120918170114\r\nDevice: Nexus 7 (4.1.1)\r\n\r\nThis is regression. Does not occur on 2.1.2.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T16:15:35.000+0000", "updated": "2012-09-19T16:15:35.000+0000" }, { "id": "219864", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I have a similar issue, but the *Ti.UI.SIZE* is set in view.height then placed in a TableViewRow (see below). \r\n\r\n*Tested on:*\r\nTitanium Studio, build: 2.1.2.201208301612\r\nSDK build: 2.1.3.v20120918170114\r\nDevice: Droid 1 (2.2.3), Galaxy Nexus (4.0.4), Nexus S (4.1.1)\r\n\r\n*Bug does not occur in 2.1.2.GA*\r\n\r\n*The code:*\r\n\\\\\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#000',\r\n navBarHidden: true\r\n});\r\n\r\nvar tableView = Ti.UI.createTableView({});\r\nwin.add(tableView);\r\n\r\nvar row = Ti.UI.createTableViewRow({});\r\n\r\nvar container = Ti.UI.createView({\r\n\theight: Ti.UI.SIZE, // bug is here\r\n\tbackgroundColor: '#fff',\r\n\tborderColor: '#ccc', borderWeight: 1\r\n});\r\n\r\ncontainer.add(Ti.UI.createLabel({\r\n text: \"I am a monkey\",\r\n}));\r\n\r\nrow.add(container);\r\n\r\ntableView.appendRow(row);\r\n\r\nwin.open();\r\n{code}\r\n\r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T16:31:17.000+0000", "updated": "2012-09-19T16:32:04.000+0000" }, { "id": "219874", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The regression is caused by the border. Should be fixed by [PR#2980|https://github.com/appcelerator/titanium_mobile/pull/2980].", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T16:57:59.000+0000", "updated": "2012-09-19T16:57:59.000+0000" }, { "id": "219887", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR is against 3.0.0, not 2.1.3. I believe we may need a different PR.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T19:34:41.000+0000", "updated": "2012-09-19T19:34:41.000+0000" }, { "id": "219941", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The backport PR: https://github.com/appcelerator/titanium_mobile/pull/3006", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T10:15:05.000+0000", "updated": "2012-09-20T10:15:05.000+0000" }, { "id": "220222", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\n\r\nosx Mountain Lion 10.8.1 \r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK, build: 2.1.3.v20120920154617\r\nTitanium SDK, build: 3.0.0.v20120921144915\r\nDevice: Galaxy S3 (4.0.4)\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T16:01:16.000+0000", "updated": "2012-09-21T16:01:16.000+0000" }, { "id": "223171", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue, since the row is not displayed.\r\nTested on:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121010184612\r\nDevice: Samsung Galaxy Nexus (4.1.1)\r\n\r\nRegression, does not occur on 2.1.3.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T21:21:35.000+0000", "updated": "2012-10-11T21:21:35.000+0000" }, { "id": "223350", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks like this is working on the latest version of master and 3_0_X.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T00:36:47.000+0000", "updated": "2012-10-13T00:36:47.000+0000" }, { "id": "223997", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified and tested on:\r\nTitanium Studio, build: 3.0.0.201210151149\r\nTitanium SDK, builds: 3.0.0.v20121017100120; 3.1.0.v20121017102121\r\nDevice: Nexus 7 (4.1.1)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T18:04:18.000+0000", "updated": "2012-10-17T18:04:18.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }