{ "id": "119201", "key": "TIMOB-14986", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15703", "description": "2013 Sprint 22", "name": "2013 Sprint 22", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "15704", "description": "2013 Sprint 22 API", "name": "2013 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-22T10:46:07.000+0000", "created": "2013-08-28T17:46:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios7", "module_listview", "qe-testadded" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-01-06T16:07:17.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": "h3. Expected results\r\n\r\nTableView in Window in Tab with left:0 (or no left value set) would be left-aligned to its parent as is the case with iOS6.\r\n\r\nh3. Actual results\r\n\r\nAs shown in the attached screenshot, the tableview is inset from the left edge of the screen. \r\n\r\nProject is https://github.com/appcelerator-training/tcd_training/tree/master/labcode/Finished/05_alloy", "attachment": [ { "id": "42821", "filename": "native IOS 7 tableview.png", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-27T23:16:06.000+0000", "size": 116129, "mimeType": "image/png" }, { "id": "41937", "filename": "Screen Shot 2013-08-28 at 1.43.58 PM.png", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-28T17:46:27.000+0000", "size": 181713, "mimeType": "image/png" }, { "id": "41938", "filename": "Screen Shot 2013-08-28 at 1.57.17 PM.png", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-28T17:58:18.000+0000", "size": 165279, "mimeType": "image/png" }, { "id": "42822", "filename": "titanium tableview iOS 7.png", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-27T23:16:06.000+0000", "size": 56466, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: Support separatorInsets property", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": "Xcode 5 DP 6\r\niOS 7 simulator, retina/tall", "comment": { "comments": [ { "id": "268645", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "On further testing, it's just the separator lines that are indented. Cell content is to the left where expected.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-28T17:58:57.000+0000", "updated": "2013-08-28T17:58:57.000+0000" }, { "id": "268657", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Expected behavior in iOS 7", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-28T18:22:35.000+0000", "updated": "2013-08-28T18:22:35.000+0000" }, { "id": "271208", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-09-16T08:19:01.000+0000", "updated": "2013-09-16T08:19:01.000+0000" }, { "id": "272822", "author": { "name": "c4yolli", "key": "c4yolli", "displayName": "Oliver Lohoff", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The Status is resolved, but i think it isn't.\r\nThe TableView still indents to the left on iPhone (not only the lines).\r\n3.1.3, latest Xcode.\r\n", "updateAuthor": { "name": "c4yolli", "key": "c4yolli", "displayName": "Oliver Lohoff", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-25T10:02:26.000+0000", "updated": "2013-09-25T10:02:26.000+0000" }, { "id": "272835", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~c4yolli] can you please attach a screenshot?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-25T15:35:01.000+0000", "updated": "2013-09-25T15:35:01.000+0000" }, { "id": "272842", "author": { "name": "c4yolli", "key": "c4yolli", "displayName": "Oliver Lohoff", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't make attachment.\r\nHere you can find two Screenshots:\r\n\r\nhttp://istbaldsoweit.de/1.png\r\nhttp://istbaldsoweit.de/2.png\r\n\r\n", "updateAuthor": { "name": "c4yolli", "key": "c4yolli", "displayName": "Oliver Lohoff", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-25T16:28:51.000+0000", "updated": "2013-09-25T16:28:51.000+0000" }, { "id": "272849", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Interesting, because Oliver's results don't match mine -- where just the separator lines are indented, not the titles. (Checked with 3.1.3.GA) Oliver, are you using row titles or child views? Can you post sample code to reproduce the problem?", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-09-25T17:01:15.000+0000", "updated": "2013-09-25T17:01:15.000+0000" }, { "id": "272854", "author": { "name": "c4yolli", "key": "c4yolli", "displayName": "Oliver Lohoff", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tested it with \"Titanium Classic, Single Window Application\" and changed the FirstView with an TableView.\r\n\r\nApplicationWindow.js\r\n\r\n//Application Window Component Constructor\r\nfunction ApplicationWindow() {\r\n\t//load component dependencies\r\n\tvar FirstView = require('ui/common/FirstView');\r\n\tvar TableView = require('ui/common/TableView');\r\n\t\t\r\n\t//create component instance\r\n\tvar self = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'#ffffff',\r\n\t\tleft:0\r\n\t});\r\n\t\t\r\n\t//construct UI\r\n\t//var firstView = new FirstView();\r\n\t//self.add(firstView);\r\n\t\r\n\tvar tableView = new TableView();\r\n\tself.add(tableView);\r\n\t\r\n\treturn self;\r\n}\r\n\r\n//make constructor function the public component interface\r\nmodule.exports = ApplicationWindow;\r\n\r\n\r\nTableView.js\r\n\r\n//Application Window Component Constructor\r\nfunction ApplicationWindow() {\r\n\t//load component dependencies\r\n\tvar FirstView = require('ui/common/FirstView');\r\n\tvar TableView = require('ui/common/TableView');\r\n\t\t\r\n\t//create component instance\r\n\tvar self = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'#ffffff',\r\n\t\tleft:0\r\n\t});\r\n\t\t\t\r\n\tvar tableView = new TableView();\r\n\tself.add(tableView);\r\n\t\r\n\treturn self;\r\n}\r\n\r\n//make constructor function the public component interface\r\nmodule.exports = ApplicationWindow;\r\n\r\n\r\nAs you can see, a simple Window / TableView", "updateAuthor": { "name": "c4yolli", "key": "c4yolli", "displayName": "Oliver Lohoff", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-25T17:21:20.000+0000", "updated": "2013-09-25T17:21:20.000+0000" }, { "id": "273277", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "i have attached two images above of a native tableview and tableview created using TiSDK. They look are identical in the way they are indented. \n\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-27T23:17:35.000+0000", "updated": "2013-09-27T23:17:35.000+0000" }, { "id": "273945", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This might not be our bug, because this now is the default design for a table on iOS7, but then at least we should expose {{SeparatorInset}} for {{UITableView}} so developers can decide if they want this.\r\n\r\nFrom the [UI Design Guidelines|https://developer.apple.com/library/ios/documentation/userexperience/conceptual/TransitionGuide/ContentViews.html]:\r\n\r\n{quote}\r\nIf every cell in a table contains an image view of the same size, by default iOS vertically aligns the leading edge of all separators. In a table that mixes text-only cells with cells that contain image views, you can use the separatorInset property to ensure that the separators are vertically aligned.\r\n\r\nThe separatorInset property is of type UIEdgeInsets. By default, UIEdgeInsets uses UITableViewAutomaticDimension as the value for the top, left, bottom, and right parameters.\r\n{quote}\r\n\r\nThe API docs on the property:\r\nhttps://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableView_Class/Reference/Reference.html#//apple_ref/occ/instp/UITableView/separatorInset", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-10-06T06:54:53.000+0000", "updated": "2013-10-06T06:54:53.000+0000" }, { "id": "275692", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Case\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor: 'white',\n title:'INSETS',\n layout:'vertical'\n});\n\n\nvar container = Ti.UI.createView({height:Ti.UI.SIZE,width:Ti.UI.SIZE,layout:'horizontal'});\nwin.add(container);\n\n\nvar listView = Ti.UI.createListView({top:5,separatorColor:'red'});\n\nvar section = Ti.UI.createListSection();\n\nvar data = [\n {properties: { title: 'ONE'}},\n {properties: { title: 'TWO'}},\n {properties: { title: 'THREE'}},\n {properties: { title: 'FOUR'}}\n];\nsection.setItems(data);\nlistView.sections = [section]\n\nwin.add(listView);\n\n\nvar b1 = Ti.UI.createButton({title:' (0,0) ',borderColor:'black',borderWidth:1})\nvar b2 = Ti.UI.createButton({title:' (10,0) ',left:5,borderColor:'black',borderWidth:1})\nvar b3 = Ti.UI.createButton({title:' (10,10) ',left:5,borderColor:'black',borderWidth:1})\nvar b4 = Ti.UI.createButton({title:' RESET ',left:5,borderColor:'black',borderWidth:1})\n\ncontainer.add(b1);\ncontainer.add(b2);\ncontainer.add(b3);\ncontainer.add(b4);\n\ncontainer.addEventListener('click',function(e){\n if(e.source == b1) {\n listView.separatorInsets = {left:0,right:0};\n }\n if(e.source == b2) {\n listView.separatorInsets = {left:10,right:0};\n }\n if(e.source == b3) {\n listView.separatorInsets = {left:10,right:10};\n }\n if(e.source == b4) {\n listView.separatorInsets = null;\n }\n})\n\nvar nav = Ti.UI.iOS.createNavigationWindow({\n window:win\n})\n\nnav.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T18:19:28.000+0000", "updated": "2013-10-18T18:19:28.000+0000" }, { "id": "275693", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4807", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T18:22:44.000+0000", "updated": "2013-10-18T18:22:44.000+0000" }, { "id": "277244", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified the fix with:\nTitanium Studio, build: 3.2.0.201310290757\nTitanium SDK, build:3.2.0.v20131029104858\nXcode 5.0\nCLI 3.2.0 (git://github.com/appcelerator/titanium.git)\n\nRan the above code in iOS7 Simulator and iPhone5s iOS 7.0.2\nThe separator lines being slightly intended as per test code.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-29T20:48:24.000+0000", "updated": "2013-10-29T20:48:24.000+0000" }, { "id": "280711", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I'm getting the same exact problem. How to solve this. My rows are away from left, even if i set left:0 for both tableview and rows. I'm using Titanium 3.1.3 with XCode 5.0", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-22T10:14:20.000+0000", "updated": "2013-11-22T10:14:20.000+0000" }, { "id": "280712", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This is fixed in 3.2.0, which will release in december.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-11-22T10:21:17.000+0000", "updated": "2013-11-22T10:21:17.000+0000" }, { "id": "280714", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "OK. Thank you for the quick response.", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-22T10:53:14.000+0000", "updated": "2013-11-22T10:53:14.000+0000" }, { "id": "286759", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "i am still getting the rows intended on iPad3", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2014-01-06T15:36:05.000+0000", "updated": "2014-01-06T15:36:05.000+0000" }, { "id": "286760", "author": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "body": "I had to convert from using the TableView to the ListView to fix the indentation. I figured it was probably a good move anyway, but I agree, the original problem with the TableView is not completely fixed.", "updateAuthor": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "created": "2014-01-06T16:07:17.000+0000", "updated": "2014-01-06T16:07:17.000+0000" } ], "maxResults": 22, "total": 22, "startAt": 0 } } }