{ "id": "127773", "key": "TIMOB-16642", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-06-13T20:27:02.000+0000", "created": "2014-03-18T00:38:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "listview", "separatorinsets", "tableview" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [ { "id": "35921", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "125751", "key": "TIMOB-16355", "fields": { "summary": "iOS: separatorInsets should not be used for header/section titles", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "38390", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "130691", "key": "TIMOB-17001", "fields": { "summary": "iOS: Search disappears from ListView", "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": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:58:36.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "I have a TableView that I want the separator line to go all the way across. I set the separatorInsets property to {left:0,right:0}.\r\n\r\nI then added a SearchBar to the table. When running the app, when I search, the matching tableviewrows display with the separator inset back to the default (it doesn't go all the way left).\r\n\r\nSample Code:\r\n{code:title=index.xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n{code:title=index.tss}\r\n\"#mainTable\": {\r\n\tseparatorInsets:{left:0,right:0},\r\n\tfilterAttribute:\"title\",\r\n}\r\n{code}\r\n{code:title=index.js}\r\n$.win.open();\r\n{code}\r\n", "attachment": [ { "id": "46708", "filename": "before.png", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-18T00:38:49.000+0000", "size": 24536, "mimeType": "image/png" }, { "id": "46709", "filename": "searching.png", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-18T00:38:49.000+0000", "size": 71568, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: separatorInsets are ignored when using TableView SearchBar", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": "iOS 7.0.3\r\nTitanium 3.2.1.GA\r\nAlloy 1.3.1", "closedSprints": [ { "id": 129, "state": "closed", "name": "To Be Scheduled", "startDate": "2016-03-28T04:03:55.142Z", "endDate": "2016-04-08T04:03:00.000Z", "completeDate": "2016-03-29T04:09:03.755Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "297818", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with the provided test case.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-19T05:25:38.000+0000", "updated": "2014-03-19T05:25:38.000+0000" }, { "id": "298145", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "Also reproducible with 3.2.2.GA ", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2014-03-20T21:08:36.000+0000", "updated": "2014-03-20T21:08:36.000+0000" }, { "id": "302398", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is essentially due to the fact that the searchView table and normal table are not the same. \r\nThis could be achieved by using the searchText API on LIstView.\r\n\r\n{code}\r\nfunction isValidVar(check){\r\n if (check !== undefined && check !== null){\r\n return true;\r\n }\r\n return false;\r\n}\r\n\r\nfunction clickHandler(e){\r\n var message = 'Type:'+e.type+'\\nSection title:'+e.section.headerTitle+'\\nsectionIndex:'+e.sectionIndex+'\\nitemIndex:'+e.itemIndex;\r\n if(isValidVar(e.bindId)){\r\n message += '\\nbindId:'+e.bindId;\r\n }\r\n if(isValidVar(e.itemId)){\r\n message += '\\nitemId:'+e.itemId;\r\n }\r\n alert(message);\r\n}\r\n\r\nfunction genTest(win) {\r\n\tvar sections = [];\r\n\r\n\tvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});\r\n\tvar fruitDataSet = [\r\n\t {properties: { title: 'Apple', searchableText:' Fruits Apple', itemId:'0 0'}},\r\n\t {properties: { title: 'Banana', searchableText:'Fruits Banana', itemId:'0 1'}},\r\n\t {properties: { title: 'Cantaloupe', searchableText:'Fruits Cantaloupe', itemId:'0 2'}},\r\n\t {properties: { title: 'Fig', searchableText:'Fruits Fig', itemId:'0 3'}},\r\n\t {properties: { title: 'Guava', searchableText:'Fruits Guava', itemId:'0 4'}},\r\n\t {properties: { title: 'Kiwi', searchableText:'Fruits Kiwi', itemId:'0 5'}},\r\n\t];\r\n\tfruitSection.setItems(fruitDataSet);\r\n\tsections.push(fruitSection);\r\n\t \r\n\tvar vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables'});\r\n\tvar vegDataSet = [\r\n\t {properties: { title: 'Carrots', searchableText:'Vegetables Carrots', itemId:'1 0'}},\r\n\t {properties: { title: 'Potatoes', searchableText:'Vegetables Potatoes', itemId:'1 1'}},\r\n\t {properties: { title: 'Corn', searchableText:'Vegetables Corn', itemId:'1 2'}},\r\n\t {properties: { title: 'Beans', searchableText:'Vegetables Beans', itemId:'1 3'}},\r\n\t {properties: { title: 'Tomato', searchableText:'Vegetables Tomato', itemId:'1 4'}},\r\n\t];\r\n\tvegSection.setItems(vegDataSet);\r\n\tsections.push(vegSection);\r\n\t \r\n\t \r\n\tvar fishSection = Ti.UI.createListSection({ headerTitle: 'Fish'});\r\n\tvar fishDataSet = [\r\n\t {properties: { title: 'Cod', searchableText:'Fish Cod', itemId:'2 0'}},\r\n\t {properties: { title: 'Haddock', searchableText:'Fish Haddock', itemId:'2 1'}},\r\n\t {properties: { title: 'Salmon', searchableText:'Fish Salmon', itemId:'2 2'}},\r\n\t {properties: { title: 'Tuna', searchableText:'Fish Tuna', itemId:'2 3'}},\r\n\t];\r\n\tfishSection.setItems(fishDataSet);\r\n\tsections.push(fishSection);\r\n\t\r\n\tvar animalsSection = Ti.UI.createListSection({ headerTitle: 'Animals'});\r\n\tvar animalsDataSet = [\r\n\t {properties: { title: 'Deer', searchableText:'Animals Deer', itemId:'3 0'}},\r\n\t {properties: { title: 'Dog', searchableText:'Animals Dog', itemId:'3 1'}},\r\n\t {properties: { title: 'Cat', searchableText:'Animals Cat', itemId:'3 2'}},\r\n\t {properties: { title: 'Elephant', searchableText:'Animals Elephant', itemId:'3 3'}},\r\n\t];\r\n\tanimalsSection.setItems(animalsDataSet);\r\n\tsections.push(animalsSection);\r\n\tvar listView = Ti.UI.createListView({top: '50dp',separatorInsets:{left:100}});\r\n\tlistView.style=Ti.UI.iPhone.ListViewStyle.PLAIN;\r\n\t\r\n\tlistView.sections = sections;\r\n\tlistView.keepSectionsInSearch = true;\r\n\t\r\n\tvar tf = Ti.UI.createTextField({\r\n\t borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n\t color: '#336699',\r\n\t height: '40dp',\r\n\t width:Ti.UI.FILL,\r\n\t left:5,\r\n\t top: 5,\r\n\t font:{fontSize:20,fontWeight:'bold'},\r\n\t hintText: 'Search'\r\n\t});\r\n\t\r\n\ttf.addEventListener('change',function(e){\r\n\t listView.searchText = e.value;\r\n\t});\r\n\t\r\n\twin.add(tf);\r\n\t\r\n\t\r\n\tvar indices = [\r\n\t{index:0,title:'Fru'},\r\n\t{index:1,title:'Veg'},\r\n\t{index:2,title:'Fis'},\r\n\t{index:3,title:'Ani'}\r\n\t];\r\n\tlistView.sectionIndexTitles = indices;\r\n\t\r\n\t\r\n\twin.add(listView);\r\n\t\r\n\tlistView.addEventListener('itemclick', clickHandler);\r\n\r\n}\r\n\r\n\r\nvar win = Ti.UI.createWindow({\r\n\ttitle:'Search API',\r\n});\r\ngenTest(win);\r\nwin.open();\r\n\r\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-24T16:30:44.000+0000", "updated": "2014-04-24T16:30:44.000+0000" }, { "id": "305966", "author": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "body": "Any idea when this will be resolved? Given the previous separator line issue was resolved - surely this one would be a small tweak on from that?\r\n\r\nThis is the sort of issue that makes people think that Titanium apps are not quite proper apps. It falls into the category of the old label problem on a tableViewRow when it was selected a Titanium app was not able change the label colour and then back again - it looked cheap and an almost app - then the property highlightedColor was added - and that tiny change meant we no longer looked an almost app. ", "updateAuthor": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "created": "2014-05-21T20:15:07.000+0000", "updated": "2014-05-21T20:15:07.000+0000" }, { "id": "308970", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "Won't fix, since the way to go is using ListView as described in the comments", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2014-06-13T20:27:02.000+0000", "updated": "2014-06-13T20:27:02.000+0000" }, { "id": "308974", "author": { "name": "colons", "key": "colons", "displayName": "colons", "active": true, "timeZone": "Europe/London" }, "body": "If using a ListView as a drop-in replacement for a TableView was a workable solution to all instances of this problem, there would be no reason for TableView to exist in the first place.", "updateAuthor": { "name": "colons", "key": "colons", "displayName": "colons", "active": true, "timeZone": "Europe/London" }, "created": "2014-06-13T20:35:37.000+0000", "updated": "2014-06-13T20:35:37.000+0000" }, { "id": "309110", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~colons] Is there a ticket for ListView that describes why it won't work for your use case?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T13:25:55.000+0000", "updated": "2014-06-16T13:25:55.000+0000" }, { "id": "415183", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:58:36.000+0000", "updated": "2017-03-22T22:58:36.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }