{ "id": "136773", "key": "TIMOB-17724", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-19T22:45:32.000+0000", "created": "2014-09-18T09:31:48.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_tableviewrow", "qe-3.4.0", "qe-manualtest", "qe-testadded", "regression" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [ { "id": "41400", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "121894", "key": "TIMOB-15621", "fields": { "summary": "Android: convertPointToView gives different results with SDK 3.1.3 compared to 3.0.2", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-11-21T20:24:06.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": "When a tableview has few rows with same classname then only the last row amongst them is shown. Also this happens when the height of the tableview is set to TI.UI.SIZE.\r\n\r\nThis is a Regression as the issue does not occur in SDK 3.3.0.GA\r\n\r\nSteps to Reproduce:\r\n1. Run the app with code below on an Android device\r\n\r\nActual Result:\r\nOnly two rows out of four are shown. Both the rows are the last row within the the set of rows that have same classname. (refer to attached screenshots for difference in 3.3.0 and 3.4.0 SDK)\r\nIf the height of tableview is not TI.UI.SIZE, then the issue will not occur.\r\n\r\nExpected Result:\r\nAll the rows in the tableview should be shown\r\n\r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nvar loginRow1 = Ti.UI.createTableViewRow({\r\n\theight : \"45dp\",\r\n\tbackgroundColor : \"red\",\r\n\tclassName : \"loginRow\",\r\n\tid : \"row1\"\r\n});\r\n\r\nvar rowArray = [];\r\nrowArray.push(loginRow1);\r\n\r\nvar loginRowLabel1 = Ti.UI.createLabel({\r\n\tleft : \"5dp\",\r\n\twidth : \"100dp\",\r\n\theight : Ti.UI.SIZE,\r\n\tcolor : \"black\",\r\n\tfont : {\r\n\t\tfontSize : \"16dp\"\r\n\t},\r\n\ttext : \"Login Row 1\",\r\n});\r\nloginRow1.add(loginRowLabel1);\r\n\r\nvar loginRow2 = Ti.UI.createTableViewRow({\r\n\theight : \"45dp\",\r\n\tbackgroundColor : \"blue\",\r\n\tclassName : \"loginRow\",\r\n\tid : \"row2\"\r\n});\r\n\r\nrowArray.push(loginRow2);\r\n\r\nvar loginRowLabel2 = Ti.UI.createLabel({\r\n\tleft : \"5dp\",\r\n\twidth : \"100dp\",\r\n\theight : Ti.UI.SIZE,\r\n\tcolor : \"black\",\r\n\tfont : {\r\n\t\tfontSize : \"16dp\"\r\n\t},\r\n\ttext : \"Login Row 2\",\r\n\t});\r\n\tloginRow2.add(loginRowLabel2);\r\n\t\r\nvar detailRow1 = Ti.UI.createTableViewRow({\r\n\t\theight : \"45dp\",\r\n\tbackgroundColor : \"green\",\r\n\tclassName : \"detailRow\",\r\n\tid : \"row3\"\r\n});\r\n\r\nrowArray.push(detailRow1);\r\n\r\nvar detailRowLabel1 = Ti.UI.createLabel({\r\n\tleft : \"5dp\",\r\n\twidth : \"100dp\",\r\n\theight : Ti.UI.SIZE,\r\n\tcolor : \"black\",\r\n\tfont : {\r\n\t\tfontSize : \"16dp\"\r\n\t},\r\n\ttext : \"Detail Row 1\",\r\n});\r\ndetailRow1.add(detailRowLabel1);\r\n\r\nvar detailRow2 = Ti.UI.createTableViewRow({\r\n\theight : \"45dp\",\r\n\tbackgroundColor : \"yellow\",\r\n\tclassName : \"detailRow\",\r\n\tid : \"row4\"\r\n});\r\n\r\nrowArray.push(detailRow2);\r\n\r\nvar detailRowLabel2 = Ti.UI.createLabel({\r\n\tleft : \"5dp\",\r\n\twidth : \"100dp\",\r\n\theight : Ti.UI.SIZE,\r\n\tcolor : \"black\",\r\n\tfont : {\r\n\t\tfontSize : \"16dp\"\r\n\t},\r\n\ttext : \"Detail Row 2\",\r\n});\r\ndetailRow2.add(detailRowLabel2);\r\n\r\nvar formView = Ti.UI.createTableView({\r\n\tleft : \"10dp\",\r\n\tright : \"10dp\",\r\n\twidth : Ti.UI.FILL,\r\n\tbackgroundColor : \"transparent\",\r\n\ttop : \"10dp\",\r\n\theight : Ti.UI.SIZE, //comment this line and the issue does not occur\r\n\tborderWidth : \"1dp\",\r\n\tborderRadius : 10,\r\n\tborderColor : \"#999\",\r\n\tseparatorColor:\"green\",\r\n\tdata : rowArray,\r\n\tid : \"formView\"\r\n});\r\n\r\nwindow.add(formView);\r\nwindow.open();\r\n{code}", "attachment": [ { "id": "51384", "filename": "3_3_0.png", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-18T09:31:48.000+0000", "size": 50410, "mimeType": "image/png" }, { "id": "51385", "filename": "3_4_0.png", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-18T09:31:48.000+0000", "size": 43557, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Only last row with same classname is shown when tableview has height set to TI.UI.SIZE", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested On:\r\nSDK: 3.4.0.v20140917120000\r\nStudio: 3.4.0.201409161950\r\nCLI: 3.4.0-rc4\r\nAlloy: 1.5.0-rc2\r\nDevice: Nexus 5 (v4.4.4)", "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "324664", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4\r\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T06:28:16.000+0000", "updated": "2014-09-19T06:28:16.000+0000" }, { "id": "324764", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This regression is caused by [PR#5239|https://github.com/appcelerator/titanium_mobile/pull/5239].", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T18:14:18.000+0000", "updated": "2014-09-19T18:14:18.000+0000" }, { "id": "324767", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue is reproducible & is a regression.\r\n\r\nEnvironment:\r\nAppc Studio : 3.4.0.201409161950\r\nTi SDK : 3.4.0.v20140918202513\r\nMac OSX : 10.9.4\r\nAlloy : 1.5.0-rc3\r\nCLI - 3.4.0-rc4\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T18:20:00.000+0000", "updated": "2014-09-19T18:20:33.000+0000" }, { "id": "324796", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/6134\r\nbackport: https://github.com/appcelerator/titanium_mobile/pull/6135", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T21:34:57.000+0000", "updated": "2014-09-19T22:21:41.000+0000" }, { "id": "324809", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs merged.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T22:45:32.000+0000", "updated": "2014-09-19T22:45:32.000+0000" }, { "id": "324864", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "All the rows having the same classname are shown\r\nVerified on:\r\nTested On:\r\nSDK: 3.4.0.v20140919162515\r\nStudio: 3.4.0.201409161950\r\nCLI: 3.4.0-rc4\r\nAlloy: 1.5.0-rc3\r\nDevice: Nexus 5(v4.4.4)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-22T05:06:12.000+0000", "updated": "2014-09-22T05:06:12.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }