{ "id": "86856", "key": "TIMOB-7784", "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": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-08T17:44:26.000+0000", "created": "2012-02-22T17:30:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [ { "id": "15461", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "80550", "key": "TIMOB-5498", "fields": { "summary": "Last row of tableView half-hidden when in window with vertical layout", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15646", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "87641", "key": "TIMOB-7947", "fields": { "summary": "iOS: TableView: Setting vertical layout does not display all the items added to the view correctly", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-09T10:42:01.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": "If you create a view with 100% width, height, and have this view add top view and table, it will only show partial rows. I've created 50 rows in the code but when I scroll down t shows only 48 rows.\r\nh4. Repro Steps \r\n1. Run the below code.\r\n2. Scroll down to the bottom only 48 rows are visible. There should be 50 rows.\r\n\r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor:'#fff'\r\n});\r\n\r\n// draw a view that fills the window and set its layout property\r\nvar view = Ti.UI.createView({\r\n backgroundColor:'transparent',\r\n top:0,\r\n left:0,\r\n width:'100%',\r\n height: '100%',\r\n layout:'vertical'\r\n});\r\nvar tbl_data = [];\r\nfor (var i = 0; i < 50; i++) {\r\n var row = Ti.UI.createTableViewRow();\r\n var label = Ti.UI.createLabel({\r\n left: 10,\r\n text: 'Row ' + (i+1)\r\n });\r\n \r\n row.add(label);\r\n tbl_data.push(row);\r\n}\r\nvar view1 = Ti.UI.createView({\r\n backgroundColor:'red',\r\n top:0,\r\n left:0,\r\n width:100,\r\n height:100,\r\n layout:'vertical'\r\n});\r\n// now assign that array to the table's data property to add those objects as rows\r\nvar table = Titanium.UI.createTableView({\r\n\t//top: 100,\r\n\theight: 'auto',\r\n data:tbl_data\r\n});\r\nview.add(view1);\r\nview.add(table);\r\nwindow.add(view);\r\nwindow.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TableView shows only partial rows", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 2.3.3\r\nTi SDK 1.8.0.1\r\nTi SDk 1.8.1", "comment": { "comments": [ { "id": "185762", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Droid 3 2.3.4 with 2.0.0.v20120308234731", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-09T10:10:02.000+0000", "updated": "2012-03-09T10:10:02.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }