{ "id": "104776", "key": "TIMOB-11722", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-14T20:14:59.000+0000", "created": "2012-11-09T20:10:12.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-14T20:14:59.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "REPRODUCTION:\r\nTest with code below in Google Chrome with either 3.0 or master.\r\n\r\nRESULTS:\r\n1. Table does not render using the sections property upon creation, but does with the data property. The methods, appendSection, insertSectionBefore and insertSectionAfter work.\r\n2. Rows in the sections do no render properly, when using the data property upon creation or using the section methods. It's missing the lines and padding between the rows. Works fine in 2.1.3.GA.\r\n3. The scroll event properties firstVisibleItem and totalItemCount do not report the correct information. totalItemCount reports the number of sections and firstVisibleItem either returns undefined or a TableViewRow object.\r\n4. The scroll event properties contentSize and size report the same dimensions. I believe contentSize is correct, since it is similar to value returned by iOS and Android. size should report the visible area.\r\n\r\n\r\n\r\n{code}\r\n Ti.UI.backgroundColor = 'white';\r\n var win = Ti.UI.createWindow();\r\n\r\n var sectionFruit = Ti.UI.createTableViewSection({ headerTitle: 'Fruit' });\r\n sectionFruit.add(Ti.UI.createTableViewRow({ title: 'Apples' }));\r\n sectionFruit.add(Ti.UI.createTableViewRow({ title: 'Bananas' }));\r\n sectionFruit.add(Ti.UI.createTableViewRow({ title: 'Blueberries' }));\r\n sectionFruit.add(Ti.UI.createTableViewRow({ title: 'Cherries' }));\r\n sectionFruit.add(Ti.UI.createTableViewRow({ title: 'Figs' }));\r\n\r\n var sectionVeg = Ti.UI.createTableViewSection({ headerTitle: 'Vegetables' });\r\n sectionVeg.add(Ti.UI.createTableViewRow({ title: 'Beets' }));\r\n sectionVeg.add(Ti.UI.createTableViewRow({ title: 'Carrots' }));\r\n sectionVeg.add(Ti.UI.createTableViewRow({ title: 'Leeks' }));\r\n sectionVeg.add(Ti.UI.createTableViewRow({ title: 'Onions' }));\r\n sectionVeg.add(Ti.UI.createTableViewRow({ title: 'Potatoes' }));\r\n\r\n var sectionFish = Ti.UI.createTableViewSection({ headerTitle: 'Fish' });\r\n sectionFish.add(Ti.UI.createTableViewRow({ title: 'Cod' }));\r\n sectionFish.add(Ti.UI.createTableViewRow({ title: 'Haddock' }));\r\n sectionFish.add(Ti.UI.createTableViewRow({ title: 'Mahi Mahi' }));\r\n sectionFish.add(Ti.UI.createTableViewRow({ title: 'Salmon' }));\r\n sectionFish.add(Ti.UI.createTableViewRow({ title: 'Tuna' }));\r\n\r\n var sectionBird = Ti.UI.createTableViewSection({ headerTitle: 'Poultry' });\r\n sectionBird.add(Ti.UI.createTableViewRow({ title: 'Chicken' }));\r\n sectionBird.add(Ti.UI.createTableViewRow({ title: 'Hen' }));\r\n sectionBird.add(Ti.UI.createTableViewRow({ title: 'Ostrich' }));\r\n sectionBird.add(Ti.UI.createTableViewRow({ title: 'Quail' }));\r\n sectionBird.add(Ti.UI.createTableViewRow({ title: 'Turkey' }));\r\n\r\n var table = Ti.UI.createTableView({\r\n sections: [sectionFish, sectionFruit, sectionBird, sectionVeg]\r\n });\r\n\r\n\t\t\ttable.addEventListener('scroll', function(e){\r\n\t\t\t\tTi.API.info(JSON.stringify(e.contentOffset) + JSON.stringify(e.contentSize) + JSON.stringify(e.size) + e.firstVisibleItem + e.totalItemCount);\r\n\t\t\t})\r\n\r\n win.add(table);\r\n win.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Various parity issues with TableView", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 3.0.0 (11/06/12 11:46 40f6e02) and 3.1.0 (11/08/12 14:56 74cf9fc)\r\nMac OS X v10.7.5\r\nGoogle Chrome v22.0.1229.94", "comment": { "comments": [ { "id": "422000", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-14T20:14:59.000+0000", "updated": "2017-06-14T20:14:59.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }