{ "id": "110933", "key": "TIMOB-13021", "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": "15564", "description": "2013 Sprint 15 API", "name": "2013 Sprint 15 API", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-07-22T23:26:16.000+0000", "created": "2013-03-11T13:12:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ipass1", "supportTeam" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-28T20:36:29.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": "h4. Description\r\nFor TableViewRow whose movable property is set to false should not be rearrange if other movable rows try to drag above it. Similar functionality can be viewed in Iphone mail app in which \"All Inboxes\" row is always at the top, and other rows cannot be dragged above it. Please see the attached screenshot representing the same.\r\n\r\nWhile in the below case movable rows are able to drag above the fixed row whose movable property is set to false. Please see the below code to reproduce the same:\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\nvar data = [];\r\nvar row1 = Ti.UI.createTableViewRow({\r\n title: 'Should be fixed',\r\n moveable: false\r\n});\r\nvar section1 = Ti.UI.createTableViewSection({\r\n rows: [row1]\r\n})\r\ndata.push(section1)\r\nvar row2 = Ti.UI.createTableViewRow({\r\n title: 'Moveable 1',\r\n moveable: true\r\n});\r\nvar row3 = Ti.UI.createTableViewRow({\r\n title: 'Moveable 2',\r\n moveable: true\r\n});\r\nvar section2 = Ti.UI.createTableViewSection({\r\n rows: [row2, row3]\r\n})\r\ndata.push(section2)\r\nvar tableView = Ti.UI.createTableView({\r\n data:data,\r\n moving: true,\r\n moveable: false,\r\n style: Titanium.UI.iPhone.TableViewStyle.GROUPED\r\n})\r\nwin1.add(tableView);\r\ntabGroup.addTab(tab1);\r\ntabGroup.open();\r\n{code}", "attachment": [ { "id": "36294", "filename": "rearrange-mail-inboxes-ios.jpg", "author": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-14T09:25:52.000+0000", "size": 40930, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "IOS:TableViewRow whose movable property is set to 'false' can be rearranged if other movable rows drag above it.", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TI SDK : 3.0.0 GA and 3.0.2 GA\r\nIOS Simulator : 6.1", "comment": { "comments": [ { "id": "250061", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "cannot reproduce\r\n\r\nTested with\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0\r\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-03T07:58:20.000+0000", "updated": "2013-05-03T07:58:20.000+0000" }, { "id": "250970", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue is reproducible with below environment:\r\nSDK: 3.0.0.GA , 3.0.2.GA , 3.1.0.GA , 3.1.1.v20130508001914\r\nStudio: Appcelerator studio 3.1.1.201305072102 and Titanium studio 3.1.0.201304171607\r\nDevice : iOS simulator 6.0\r\n\r\nThe test code renders 3 tableviewrow. Top most has moveable property set to false.The rest two tableviewrow have moveable property set to true.\r\nSteps to reproduce:\r\n1.Run the given sample app\r\n2.Drag the 2nd and 3rd tableviewrow above the 1st tableviewrow\r\n\r\nExpected result\r\n1.3 tableviewrow are displayed\r\n2.The top tableviewrow should not move from its position.\r\n\r\nActual result:\r\n1.3 tableviewrow are displayed\r\n2.The top tableviewrow moves from its position and the 2 tableviewrow get placed above it.\r\n\r\n", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T09:38:15.000+0000", "updated": "2013-05-09T09:38:15.000+0000" }, { "id": "262747", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is not a bug.\r\nThe functionality that is being requested is controlled by the UITableViewDelegate method\r\n\r\n- (NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath\r\n\r\nWe do not expose this functionality. In Titanium a movable row can be positioned anywhere in the tableView.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-22T23:25:27.000+0000", "updated": "2013-07-22T23:26:07.000+0000" }, { "id": "416047", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T20:36:29.000+0000", "updated": "2017-03-28T20:36:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }