{ "id": "169928", "key": "TIMOB-25358", "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": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-10-10T21:12:42.000+0000", "created": "2017-09-28T14:19:46.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "consider-6.2.3", "ios", "regression", "searchBar" ], "versions": [ { "id": "19542", "description": "", "name": "Release 6.2.2", "archived": false, "released": true, "releaseDate": "2017-09-19" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" }, { "id": "19922", "description": "", "name": "Release 6.2.1", "archived": false, "released": true, "releaseDate": "2017-09-18" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-04T09:20:03.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": "Hi,\r\n i place a tableview into a view component and attach a searchbar.\r\nBy typing into the searchbar, the filter-result appears always on the very left side\r\nof the window. Happens not with SDK 6.1.2 and earlier.\r\n\r\nShort Example Code:\r\n{code:js}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\nvar view = Titanium.UI.createView({\r\n top: 30,\r\n width: 400,\r\n left: 150,\r\n});\r\nvar tableData = [{\r\n title: 'Apples'\r\n },\r\n {\r\n title: 'Bananas'\r\n },\r\n {\r\n title: 'Carrots'\r\n },\r\n {\r\n title: 'Potatoes'\r\n }\r\n];\r\nvar searchBar = Titanium.UI.createSearchBar({\r\n showCancel: true,\r\n});\r\nvar table = Ti.UI.createTableView({\r\n data: tableData,\r\n search: searchBar,\r\n width: 300\r\n});\r\nview.add(table);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n", "attachment": [ { "id": "63377", "filename": "6.1.2.png", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2017-09-28T18:37:49.000+0000", "size": 32020, "mimeType": "image/png" }, { "id": "63378", "filename": "6.2.2.png", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2017-09-28T18:37:49.000+0000", "size": 33990, "mimeType": "image/png" }, { "id": "63375", "filename": "app.js", "author": { "name": "mlandeck", "key": "mlandeck", "displayName": "Michael Landeck", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-28T14:15:53.000+0000", "size": 447, "mimeType": "text/javascript" } ], "flagged": false, "summary": "iOS: Problem with Ti.UI.SearchBar in SDK 6.2.0+ when not filling the screen", "creator": { "name": "mlandeck", "key": "mlandeck", "displayName": "Michael Landeck", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mlandeck", "key": "mlandeck", "displayName": "Michael Landeck", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.13\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 6.10.0\r\n npm Version = 3.10.10\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\nTitanium SDK\r\n SDK Version = 6.2.1.GA\r\n SDK Path = /Users/ml/Library/Application Support/Titanium/mobilesdk/osx/6.2.1.GA\r\n Target Platform = iphone", "comment": { "comments": [ { "id": "428581", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi,\r\nWe have tested this issue with 6.2.2.GA and 6.1.2.GA. And able to reproduce this issue, By typing into the search bar, the filter-result appears always on the very left side with 6.2.2.GA\r\nof the window\r\n !6.1.2.png|thumbnail! !6.2.2.png|thumbnail! \r\n\r\nTest Code\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\nvar view = Titanium.UI.createView({\r\n\t\ttop:30,\r\n\t\twidth:400,\r\n\t\tleft:150,\r\n});\r\nvar tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ];\r\nvar searchBar = Titanium.UI.createSearchBar({\r\n\t\t\tshowCancel:true,\r\n\t\t\r\n});\r\nvar table = Ti.UI.createTableView({\r\n data: tableData,\r\n search:searchBar,\r\n width:300\r\n});\r\nview.add(table);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nTest Environment \r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.4.4\r\n npm Version = 2.15.1\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\nTitanium SDK\r\n SDK Version = 6.2.2.GA\r\n SDK Path = /Users/Raju/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA\r\n Target Platform = iphone\r\n{code}\r\n\r\nThanks ", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2017-09-28T18:42:25.000+0000", "updated": "2017-09-28T18:42:25.000+0000" }, { "id": "428626", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master) : https://github.com/appcelerator/titanium_mobile/pull/9495\r\nPR (6_3_X) : https://github.com/appcelerator/titanium_mobile/pull/9496\r\n\r\nTest Case 1 -\r\n\r\n{code:java}\r\nvar rows = [];\r\nfor (var i = 0; i < 20; i++) {\r\n rows.push({ properties: { title: 'Row '+ i , backgroundColor: 'red', searchableText:'Row '+i}});\r\n}\r\nvar win = Ti.UI.createWindow({\r\n title: 'TEST',\r\n backgroundColor: '#ffffff',\r\n}); \r\n\r\nvar view = Titanium.UI.createView({\r\n top:50,\r\n width:400,\r\n left:150,\r\n});\r\n\r\nvar sb = Ti.UI.createSearchBar({\r\n showCancel:true,\r\n});\r\n \r\nvar ls = Ti.UI.createListSection({\r\n items: rows\r\n});\r\n var lv = Ti.UI.createListView({\r\n sections: [ls],\r\n searchView: sb,\r\n});\r\n \r\nsb.setHintText(\"test\");\r\n sb.addEventListener('change', function(e){\r\n Ti.API.info(e.value);\r\n});\r\n //when the return key is hit, remove focus from our searchBar\r\nsb.addEventListener('return', function(e){\r\n sb.blur();\r\n});\r\nlv.addEventListener('itemclick', function(e) {\r\n Ti.API.info('click at index: ' + e.itemIndex);\r\n});\r\n\r\nview.add(lv);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nTest Case 2 -\r\n\r\n{code:java}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\nvar view = Titanium.UI.createView({\r\n top:50,\r\n width:400,\r\n left:150,\r\n});\r\nvar tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ];\r\nvar searchBar = Titanium.UI.createSearchBar({\r\n showCancel:true,\r\n \r\n});\r\nvar table = Ti.UI.createTableView({\r\n data: tableData,\r\n search:searchBar,\r\n width:300\r\n});\r\nview.add(table);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\n\r\nNote - This fix has base of TIMOB-25287. First merge TIMOB-25287's PRs then verify these PRs.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-02T04:59:26.000+0000", "updated": "2017-10-02T04:59:26.000+0000" }, { "id": "428909", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Searchbar search results correctly appear on top of the view and not shifted to the side. Tested using the test cases and the searchbar suite.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-10T21:12:42.000+0000", "updated": "2017-10-10T21:12:42.000+0000" }, { "id": "428947", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified in SDK builds 6.3.0.v20171011075314 & 7.0.0.v20171009065347.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-11T15:31:35.000+0000", "updated": "2017-10-11T15:31:35.000+0000" }, { "id": "431651", "author": { "name": "mlandeck", "key": "mlandeck", "displayName": "Michael Landeck", "active": true, "timeZone": "America/Los_Angeles" }, "body": "With iOS SDk 11.1 this Problem appears again in a similar way. The searchbar changes \r\nits width, the hint text does not appear. With 10.3.1 this doesn't happen. Same example code\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.1\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 6.10.0\r\n npm Version = 3.10.10\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\nTitanium SDK\r\n SDK Version = 6.3.0.GA\r\n SDK Path = /Users/ml/Library/Application Support/Titanium/mobilesdk/osx/6.3.0.GA\r\n Target Platform = iphone", "updateAuthor": { "name": "mlandeck", "key": "mlandeck", "displayName": "Michael Landeck", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-04T08:57:23.000+0000", "updated": "2017-12-04T08:57:23.000+0000" }, { "id": "431652", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mlandeck] I think the problem, which you are talking now, is same as mentioned in TIMOB-25414. Can you please check the ticket and let me know, if that is the problem you are facing. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-04T09:14:10.000+0000", "updated": "2017-12-04T09:14:10.000+0000" }, { "id": "431653", "author": { "name": "mlandeck", "key": "mlandeck", "displayName": "Michael Landeck", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Vijay, yes thats it.\r\nThanks", "updateAuthor": { "name": "mlandeck", "key": "mlandeck", "displayName": "Michael Landeck", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-04T09:20:03.000+0000", "updated": "2017-12-04T09:20:03.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }