{ "id": "80550", "key": "TIMOB-5498", "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": "13404", "description": "Sprint 2012-12 Core", "name": "Sprint 2012-12 Core", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-06T15:36:28.000+0000", "created": "2011-09-23T05:51:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "15461", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "86856", "key": "TIMOB-7784", "fields": { "summary": "Android: TableView shows only partial rows", "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": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-16T03:47:58.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": "Using the code below, the last row of a TableView is only half visible when the window has layout \"vertical\". The last row gets cut off by the height of the Label. It appears that when the TableView determined its own height, it didn't take into consideration its effective top.\r\n\r\nSetting the TableView's bottom to 0 produces the same result.\r\n\r\nDon suggested trying wrapping the two controls in a view and having the view be vertical layout...same result.\r\n\r\nRemoving layout:'vertical' (and setting an explicit top to the TableView) does resolve the problem, but this is not practical solution since many apps need to use the vertical layout due to unknown or dynamic dimensions of the topmost controls.\r\n\r\nAccording to Don, \"TableView wants to be fullscreen so it definitely sounds like a layout problem.\"\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'#fff',\r\n url:'win1.js',\r\n layout:'vertical',\r\n exitOnClose:true,\r\n navBarHidden:false\r\n}).open();\r\n{code}\r\n\r\n{code:lang=javascript|title=win1.js}\r\nvar win1=Ti.UI.currentWindow;\r\n\r\nvar TopLabel=Ti.UI.createLabel({\r\n text:'Hello World',\r\n color:'black',\r\n left:0,\r\n right:0,\r\n height:25,\r\n backgroundColor:'yellow'\r\n});\r\n\r\nwin1.add(TopLabel);\r\n\r\nvar MyListbox=Ti.UI.createTableView({\r\n backgroundColor:'black',\r\n// bottom:0, // this results in the same problem\r\n});\r\n\r\nfor (var i=0; i<30; i++){\r\n MyListbox.appendRow(Ti.UI.createTableViewRow({\r\n title:'Row '+i\r\n }));\r\n}\r\n\r\nwin1.add(MyListbox);\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Last row of tableView half-hidden when in window with vertical layout", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "* Titanium Studio 1.0.4.201108101535\r\n* Windows\r\n* Mobile SDK 1.8.0.v20110913141920 (also 1.7.2, 1.7.3.xxx, etc.)\r\n* Android 2.2 (emulator and device)", "comment": { "comments": [ { "id": "167114", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Relevant Q&A topic with Don Thorp's comments is here: [http://developer.appcelerator.com/question/125771/tableview-last-row-never-completely-exposed-when-a-top-label-exists-windowlayoutvertical]\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2011-09-27T11:55:32.000+0000", "updated": "2011-09-27T11:55:32.000+0000" }, { "id": "168957", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Shawn\r\n\r\nPlease try to use the markup provided, so that your ticket is easier to understand. For future reference, see the formatting changes I've made.\r\n\r\nI can confirm that I've reproduced the problem using your code, and hence am moving to the main project for the core team's consideration.\r\n\r\nThanks for raising this ticket.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-10-12T01:17:00.000+0000", "updated": "2011-10-12T01:17:00.000+0000" }, { "id": "185973", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120312091733\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.9.201202141208\r\nDevice: Nexus One (2.2.2)\r\nOS: Mac OS X Lion (10.7.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-12T09:17:52.000+0000", "updated": "2012-03-12T09:17:52.000+0000" }, { "id": "187149", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Verified fix on SDK 2.0.0.v20120319003254. Thanks!", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-19T12:49:54.000+0000", "updated": "2012-03-19T12:49:54.000+0000" }, { "id": "188344", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Woops...spoke too soon. Bug still exists when navBarHidden is set to true in app.js.\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-23T12:33:35.000+0000", "updated": "2012-03-23T12:33:35.000+0000" }, { "id": "188373", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "This bug still exists if you set the navBarHidden property to true.\r\n\r\nTested with the latest CI build 2.0.0.v20120323111758, using a HTC Sensation 4G running 2.3.x.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-03-23T13:59:36.000+0000", "updated": "2012-03-23T13:59:36.000+0000" }, { "id": "189610", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "HD ticket: http://support.appcelerator.com/tickets/APP-993421", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-03T05:39:48.000+0000", "updated": "2012-04-03T05:39:48.000+0000" }, { "id": "191327", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Still a problem in SDK 2.1.0.v20120416160358 (with navBarHidden:true).", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-17T06:57:44.000+0000", "updated": "2012-04-17T06:58:04.000+0000" }, { "id": "195474", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-21T11:47:37.000+0000", "updated": "2012-05-21T11:47:37.000+0000" }, { "id": "195756", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on a Samsung Galaxy S2, issue still exists when you set navBarHidden to true.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-23T09:50:09.000+0000", "updated": "2012-05-23T09:50:09.000+0000" }, { "id": "197582", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested this on galaxy s2 on 2.0.2GA and it works fine. Please try with 2.0.2.GA and reopen if this is still occuring.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-06T15:36:28.000+0000", "updated": "2012-06-06T15:36:28.000+0000" }, { "id": "197633", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Verified fix on SDK 2.1.0.v20120520110234 with navBarHidden:true. Thanks!\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-07T06:12:33.000+0000", "updated": "2012-06-07T06:12:33.000+0000" }, { "id": "207645", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with SDK:2.1.1.v20120712160111\r\nVerified with Studio:2.1.1.201207121732\r\n\r\nEvery row of table view is fully visible when in window with vertical layout.\r\n\r\n", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T02:22:50.000+0000", "updated": "2012-07-16T02:22:50.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }