{ "id": "80344", "key": "TIMOB-5289", "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": "12094", "description": "", "name": "Sprint 2012-02", "archived": true, "released": true, "releaseDate": "2012-01-29" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "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": "2014-03-11T17:27:25.000+0000", "created": "2011-09-15T08:50:15.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_tableview", "parity", "qe-testadded", "supportTeam" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [ { "id": "14868", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85462", "key": "TIMOB-7397", "fields": { "summary": "iOS: search result bounces while closing", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-12T09:18:08.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.Problem\r\nSetting the data dynamically to the TableView makes it ignore the searchHidden property.\r\n\r\nh3.Reproducible Steps\r\n1. Run the code\r\n2. Press \"press\" button\r\n\r\nh3.Expected behavior\r\nAfter using the setData() method within the tableView it should respect the previous searchHidden property set.\r\n\r\nh3.Remarks\r\nThe TableView instance was created with the property \"searchHidden: true\". It works correctly for the first time (the searchBar is hidden).\r\nAfter setting the new data into the tableView using setData() method looks like it overrides the searchHidden property and sets it to FALSE. The searchBar is not anymore hidden.\r\n\r\nh3.Code\r\n{code}\r\nvar win = Titanium.UI.createWindow({ backgroundColor:'#fff' });\r\nvar search = Titanium.UI.createSearchBar({\r\n barColor:'#000', \r\n showCancel:true,\r\n height:43,\r\n top:0,\r\n});\r\nvar table = Titanium.UI.createTableView({\r\n\tsearch:search,\r\n searchHidden:true,\r\n scrollable: true\r\n });\r\n \r\nvar bt1 = Ti.UI.createButton({\r\n\ttitle: \"press\",\r\n\twidth: 100,\r\n\theight: 25,\r\n\tbottom: 10,\r\n\tleft: 0\r\n});\r\nbt1.addEventListener(\"click\",function(e){\r\n\tvar arr = [];\r\n\tarr = [{title:\"Row5\"},{title:\"Row 6\"}];\r\n\ttable.setData(arr);\r\n});\r\nwin.add(table);\r\nwin.add(bt1);\r\nwin.open();\r\n{code}\r\n\r\nh3.Associated HelpDesk Ticket\r\nhttp://appc.me/a/APP-912357", "attachment": [ { "id": "22943", "filename": "ti1.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-15T10:17:42.000+0000", "size": 118954, "mimeType": "image/png" }, { "id": "22944", "filename": "ti2.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-15T10:17:42.000+0000", "size": 126059, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: TableView searchHidden property is ignored ", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Simulator, iOS 4.3, 7.0.3\r\nTitanium SDK 1.7.2, 3.2.0.GA", "comment": { "comments": [ { "id": "166159", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The tableView needs to set the searchHidden to true when the data is reloaded.\r\n\r\n{code}\r\nbt1.addEventListener(\"click\",function(e){\r\n\tvar arr = [];\r\n\tarr = [{title:\"Row5\"},{title:\"Row 6\"}];\r\n\ttable.setData(arr);\r\n\ttable.searchHidden=true\r\n});\r\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-09-15T09:44:21.000+0000", "updated": "2011-09-15T09:44:21.000+0000" }, { "id": "166169", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Setting the searchHidden property after the setData() method makes the searchBar to appear for a while. The point is to fix the TableView so that it would respect the searchHidden property that was set before. The searchBar should be hidden.", "updateAuthor": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-15T10:04:16.000+0000", "updated": "2011-09-15T10:04:16.000+0000" }, { "id": "179117", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.9.0.v20120112104633 with iPod 4.3.3", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T13:42:18.000+0000", "updated": "2012-01-12T13:42:18.000+0000" }, { "id": "179369", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening for manual merge to 1.8.1.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-16T09:46:12.000+0000", "updated": "2012-01-16T09:46:12.000+0000" }, { "id": "179809", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening for confirmation that the behavior we are seeing is expected. After clicking the button on the test app, the search bar is displayed then gets hidden. Is this the desired effect?", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-18T16:41:59.000+0000", "updated": "2012-01-18T16:41:59.000+0000" }, { "id": "179819", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Kind of. We automatically display the search bar if it exists, then animate it out if it's supposed to be hidden. That's a separate bug but I can't remember the number for it offhand.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-18T17:17:42.000+0000", "updated": "2012-01-18T17:17:42.000+0000" }, { "id": "179889", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Have a pull request up for TIMOB-7273 that also fixes this issue. The search bar is now hidden without animation.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/1211", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-19T11:27:31.000+0000", "updated": "2012-01-19T11:27:31.000+0000" }, { "id": "179914", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "for 1_8_X branch PR https://github.com/appcelerator/titanium_mobile/pull/1214", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-19T13:22:09.000+0000", "updated": "2012-01-19T13:22:09.000+0000" }, { "id": "179983", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fail - Tested with 1.9.0.v20120119134634 with iphone 4s (5.0.1), the table view now does not animate on update, but animates on launch.", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-19T17:24:38.000+0000", "updated": "2012-01-19T17:24:38.000+0000" }, { "id": "180226", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed that the animation on launch is expected and been there since 1.7.5 and 1.8.0.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T13:16:51.000+0000", "updated": "2012-01-23T13:16:51.000+0000" }, { "id": "280710", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening since searchbar is visible when app launches also.\r\nAfter clicking press button also the searchbar is still visible.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({ backgroundColor:'#fff' });\r\nvar search = Titanium.UI.createSearchBar({\r\n barColor:'#000', \r\n showCancel:true,\r\n height:43,\r\n top:0,\r\n});\r\nvar table = Titanium.UI.createTableView({\r\n\tsearch:search,\r\n searchHidden:true,\r\n scrollable: true\r\n });\r\n \r\nvar bt1 = Ti.UI.createButton({\r\n\ttitle: \"press\",\r\n\twidth: 100,\r\n\theight: 25,\r\n\tbottom: 10,\r\n\tleft: 0\r\n});\r\nbt1.addEventListener(\"click\",function(e){\r\n\tvar arr = [];\r\n\tarr = [{title:\"Row5\"},{title:\"Row 6\"}];\r\n\ttable.setData(arr);\r\n\ttable.searchHidden=true;\r\n});\r\nwin.add(table);\r\nwin.add(bt1);\r\nwin.open();\r\n{code}\r\n\r\nTestEnvironment:\r\n\r\nAppcelerator Studio: 3.2.0.201311200357\r\nSDK:3.2.0.v20131121163252\r\nalloy: 1.3.0\r\nacs: 1.0.7\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-alpha\t\r\ntitanium-code-processor: 1.1.0-alpha\r\nXcode:5.0.2\r\nOS: Mac OSX 10.9\r\nDevice: iphone5S(V7.0.2)", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T09:55:13.000+0000", "updated": "2013-11-22T09:55:13.000+0000" }, { "id": "292466", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T21:35:49.000+0000", "updated": "2014-02-11T21:35:49.000+0000" }, { "id": "296550", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening the issue as when pulling the tableview, searchbar is shown evenif the searchHidden property is set to true.\r\n\r\nEnvironment used:\r\nDevice : iPod touch 2 , iOS version: 7.1\r\nSDK: 3.2.3.v20140310185916\r\nCLI version : 3.2.1\r\nOS : MAC OSX 10.9\r\nAlloy: 1.3.1\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.2.201403061827\r\ntitanium-code-processor: 1.1.0\r\nXCode : 5.1 Beta 5\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-11T10:14:55.000+0000", "updated": "2014-03-11T10:14:55.000+0000" }, { "id": "296620", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "That is expected behavior. searchHidden only controls if the searchBar is initially hidden from the user. The user can always pull down the tableView to see it and enter data.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-11T17:27:25.000+0000", "updated": "2014-03-11T17:27:25.000+0000" }, { "id": "296752", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the fix, closing the issue as per the Vishal comment\r\nEnvironment used:\r\nDevice : iPhone 5s , iOS version : 7.1\r\nSDK: 3.2.3.v20140311115447\r\nCLI version : 3.2.1\r\nOS : MAC OSX 10.9\r\nAlloy: 1.3.1\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.2.201403061827\r\ntitanium-code-processor: 1.1.0\r\nXCode : 5.1 ", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-12T09:18:08.000+0000", "updated": "2014-03-12T09:18:08.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }