{ "id": "93214", "key": "TIMOB-9537", "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": "15079", "description": "2013 Sprint 02 API", "name": "2013 Sprint 02 API", "archived": true, "released": true, "releaseDate": "2013-01-28" }, { "id": "14812", "description": "2013 Sprint 02", "name": "2013 Sprint 02", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-01-25T22:42:54.000+0000", "created": "2012-06-14T05:35:13.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam", "api", "qe-and060112" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-27T22:32:41.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": "h6.Problem\r\nOn Android tab device, the tableview row just above the section header row, that is blank, takes part of the height of the section header and hence has more height that all other rows in the tableview.\r\n\r\nThis is not a regression. The issue occurs as far as 1.8.2\r\n\r\nh6.Tested on\r\nThe issue occurs only on Android 7\" Galaxy Tab. The behavior was not seen on Galaxy Nexus (V4.0.2) and Motorola Milestone (V2.2)\r\n\r\nAndroid Emulator 2.3\r\n\r\nh6.Steps To Reproduce\r\n1. Create Application and run on Android tab\r\n2. Check the table view for the height of the rows\r\n3. Click on a row below any header title, a minor gap is noticeable (as transparent lines, or blank depending on backgroundColor as seen in the screenshot attached TIMOB-9537_AndroidEmulator.png)\r\n\r\nh6.Actual behavior\r\nThe height of both instance of 'Row 2' is more as compared to other rows of the tableview. Check the screenshot Tablet_BlankHeader. This happens only for rows just above the blank header row. If the header row has a text then the height of each row is same. Check the screenshot Tablet_NonBlankHeader.\r\n\r\nh6.Expected\r\nThe height of all table view rows should be same\r\n\r\nh6.Repro sequence\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\n_window.backgroundColor = 'white';\r\nvar rows = [\r\n \t{title: 'Row 1'},\r\n \t{title: 'Row 2'},\r\n \t{header: '', title: 'Row 3'},\r\n\t{title: 'Row 4'},\r\n \t{title: 'Row 1'},\r\n \t{title: 'Row 2'},\r\n \t{header: '', title: 'Row 3'},\r\n \t{title: 'Row 4'}\r\n\t];\r\n\r\n\t\tvar tableview = Ti.UI.createTableView({\t\r\n\t\t});\r\n\t\ttableview.setData(rows);\r\n\t\t_window.add(tableview);\t\r\n\t_window.open();\r\n{code}", "attachment": [ { "id": "28349", "filename": "GalaxyNexus_BlankHeader", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T05:35:13.000+0000", "size": 33374, "mimeType": "application/octet-stream" }, { "id": "28350", "filename": "Tablet_BlankHeader", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T05:35:13.000+0000", "size": 19271, "mimeType": "application/octet-stream" }, { "id": "28351", "filename": "Tablet_NonBlankHeader", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T05:35:13.000+0000", "size": 20348, "mimeType": "application/octet-stream" }, { "id": "33910", "filename": "TIMOB-9537_AndroidEmulator.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T17:35:07.000+0000", "size": 88008, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TableView: A row below the blank section header row takes more height", "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": "Titanium Studio: 2.1.0.201206121914\r\nTitanium SDK: 2.1.0.v20120613192252, 2.1.4.GA\r\nAndroid Device: Android Tab GT-P6200 (V3.2)\r\nAndroid Emulator 2.3\r\nRuntime: v8", "comment": { "comments": [ { "id": "230647", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "http://www.samsung.com/ae/consumer/mobile-phones/mobile-phones/tablets/GT-P6200MAAXSG\n", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T18:36:26.000+0000", "updated": "2012-12-10T18:36:26.000+0000" }, { "id": "234631", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The row heights are all the same. Probably happening because of the difference in behavior in the native TextView with empty strings. \nAnyways if all you want is a blank header, use the headerView property of the Ti.UI.TableViewSection to set a view with required background color.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-16T13:39:18.000+0000", "updated": "2013-01-16T13:39:18.000+0000" }, { "id": "236030", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Code that should work consistently across devices\n{code}\nvar _window = Ti.UI.createWindow();\n_window.backgroundColor = 'white';\n\nvar section1 = Ti.UI.createTableViewSection({});\nsection1.add(Ti.UI.createTableViewRow({title:'Row 1'}))\nsection1.add(Ti.UI.createTableViewRow({title:'Row 2'}))\n\nvar headerView2 = Ti.UI.createView({width:Ti.UI.FILL,height:'18dp',backgroundColor:'darkgray'})\nvar section2 = Ti.UI.createTableViewSection({headerView:headerView2});\nsection2.add(Ti.UI.createTableViewRow({title:'Row 3'}))\nsection2.add(Ti.UI.createTableViewRow({title:'Row 4'}))\nsection2.add(Ti.UI.createTableViewRow({title:'Row 1'}))\nsection2.add(Ti.UI.createTableViewRow({title:'Row 2'}))\n\nvar headerView3 = Ti.UI.createView({width:Ti.UI.FILL,height:'18dp',backgroundColor:'darkgray'})\nvar section3 = Ti.UI.createTableViewSection({headerView:headerView3});\nsection3.add(Ti.UI.createTableViewRow({title:'Row 3'}))\nsection3.add(Ti.UI.createTableViewRow({title:'Row 4'}))\n\nvar data = [];\ndata.push(section1);\ndata.push(section2);\ndata.push(section3);\n\nvar tableview = Ti.UI.createTableView({});\ntableview.setData(data);\n_window.add(tableview); \n\n_window.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-25T22:42:39.000+0000", "updated": "2013-01-25T22:42:39.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }