{ "id": "170060", "key": "TIMOB-25414", "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": "19988", "description": "", "name": "Release 7.0.1", "archived": false, "released": true, "releaseDate": "2017-12-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-12-15T14:19:39.000+0000", "created": "2017-10-19T09:40:45.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios" ], "versions": [ { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" }, { "id": "19542", "description": "", "name": "Release 6.2.2", "archived": false, "released": true, "releaseDate": "2017-09-19" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-20T22:54:01.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" } ], "attachment": [ { "id": "63450", "filename": "after focus.png", "author": { "name": "geoffrey.noel", "key": "geoffrey.noel", "displayName": "geoffrey.noel", "active": true, "timeZone": "Europe/Paris" }, "created": "2017-10-19T09:07:15.000+0000", "size": 71928, "mimeType": "image/png" }, { "id": "63449", "filename": "before focus.png", "author": { "name": "geoffrey.noel", "key": "geoffrey.noel", "displayName": "geoffrey.noel", "active": true, "timeZone": "Europe/Paris" }, "created": "2017-10-19T09:06:35.000+0000", "size": 72461, "mimeType": "image/png" }, { "id": "63451", "filename": "during focus.png", "author": { "name": "geoffrey.noel", "key": "geoffrey.noel", "displayName": "geoffrey.noel", "active": true, "timeZone": "Europe/Paris" }, "created": "2017-10-19T09:06:56.000+0000", "size": 166540, "mimeType": "image/png" }, { "id": "63502", "filename": "TestSearchResult.zip", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-30T06:30:02.000+0000", "size": 31027, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS : Search bar in absolute-positioned ListView extends when focused", "creator": { "name": "geoffrey.noel", "key": "geoffrey.noel", "displayName": "geoffrey.noel", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "geoffrey.noel", "key": "geoffrey.noel", "displayName": "geoffrey.noel", "active": true, "timeZone": "Europe/Paris" }, "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 = 7.9.0\r\n npm Version = 4.2.0\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\nTitanium SDK\r\n SDK Version = 6.3.0.v20171017063048\r\n SDK Path = /Users/me/Library/Application Support/Titanium/mobilesdk/osx/6.3.0.v20171017063048\r\n\r\nXcode 9.0.1\r\n\r\nDeploy type: development\r\nBuilding for target: simulator\r\nBuilding using iOS SDK: 11.0\r\nBuilding for iOS Simulator: Simulateur iPad\r\nBuilding for device family: universal\r\nMinimum iOS version: 8.0", "comment": { "comments": [ { "id": "429290", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there, thanks for this addition! So the search-results are framed properly, but the search-bar itself does use the wrong width? ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-19T14:00:26.000+0000", "updated": "2017-10-19T14:00:26.000+0000" }, { "id": "429291", "author": { "name": "geoffrey.noel", "key": "geoffrey.noel", "displayName": "geoffrey.noel", "active": true, "timeZone": "Europe/Paris" }, "body": "Hi @Knöchel\r\nYes, the search-results and the search bar are framed properly since the RC 6.3.0 but the search bar width is wrong", "updateAuthor": { "name": "geoffrey.noel", "key": "geoffrey.noel", "displayName": "geoffrey.noel", "active": true, "timeZone": "Europe/Paris" }, "created": "2017-10-19T14:44:02.000+0000", "updated": "2017-10-19T14:44:52.000+0000" }, { "id": "429293", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I am able to reproduce the issue, same for the Ti.UI.ListView:\r\n{code:js}\r\n var data = [ { properties: {title : 'Bashful', hasDetail: true}}];\r\n \r\n var win = Ti.UI.createWindow( {\r\n backgroundColor : 'white'\r\n } );\r\n \r\n var searchBar = Ti.UI.createSearchBar();\r\n \r\n var tableView = Ti.UI.createListView( {\r\n backgroundColor : '#999',\r\n searchView : searchBar,\r\n sections : [Ti.UI.createListSection({items: data})],\r\n top : 150,\r\n bottom : 150,\r\n left : 150,\r\n right : 150\r\n } );\r\n \r\n win.add( tableView);\r\n win.open();\r\n\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-19T15:13:42.000+0000", "updated": "2017-10-19T15:13:42.000+0000" }, { "id": "429427", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I tried some more use-cases and it looks like it's only occurring on iOS 11, not iOS 9 for example, which makes me think this might be a native behavior. The relevant calculation is done [here|https://github.com/appcelerator/titanium_mobile/blob/6_3_X/iphone/Classes/TiUIListView.m#L2184-L2189], so if you want to help speeding up the fix, let me know if you have an additional idea!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-23T12:49:46.000+0000", "updated": "2017-10-23T12:49:46.000+0000" }, { "id": "429806", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue is happening only with iOS 11 and above, not in iOS 10 or iOS 9. I tried the same in native sample app attached as \"TestSearchResult.zip\" . It is also behaving in same way. It looks it is issue in iOS 11. We can file a ticket to apple. \r\n\r\nThough I am looking in this if I can found any workaround from our side.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-30T06:38:09.000+0000", "updated": "2017-10-30T06:41:50.000+0000" }, { "id": "429941", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Filed a bug to apple -\r\nhttps://openradar.appspot.com/radar?id=4978709362638848", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-01T07:07:42.000+0000", "updated": "2017-11-01T07:07:42.000+0000" }, { "id": "431422", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master) : https://github.com/appcelerator/titanium_mobile/pull/9635\r\nPR (7_0_X) : https://github.com/appcelerator/titanium_mobile/pull/9657\r\nTest Case1 -\r\n\r\n{code:java}\r\n var data = [ { properties: {title : 'Bashful', hasDetail: true}}];\r\n \r\n var win = Ti.UI.createWindow( {\r\n backgroundColor : 'white'\r\n } );\r\n \r\n var searchBar = Ti.UI.createSearchBar();\r\n \r\n var tableView = Ti.UI.createListView( {\r\n backgroundColor : '#999',\r\n searchView : searchBar,\r\n sections : [Ti.UI.createListSection({items: data})],\r\n top : 50,\r\n bottom : 50,\r\n left : 40,\r\n right : 40\r\n } );\r\n win.add( tableView);\r\n win.open();\r\n{code}\r\n\r\nTest Case 2-\r\n\r\n{code:java}\r\n var data = [{title : 'Bashful', hasDetail: true}];\r\n \r\n var win = Ti.UI.createWindow( {\r\n backgroundColor : 'white'\r\n } );\r\n \r\n var searchBar = Ti.UI.createSearchBar();\r\n \r\n var tableView = Ti.UI.createTableView( {\r\n backgroundColor : '#999',\r\n search : searchBar,\r\n data : data,\r\n top : 50,\r\n bottom : 50,\r\n left : 40,\r\n right : 40\r\n } );\r\n win.add( tableView);\r\n win.open();\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-29T02:33:49.000+0000", "updated": "2017-12-06T05:33:33.000+0000" }, { "id": "431597", "author": { "name": "geoffrey.noel", "key": "geoffrey.noel", "displayName": "geoffrey.noel", "active": true, "timeZone": "Europe/Paris" }, "body": "I tested both test case with the latest build from Thu Nov 30, 2017 13:50:12 --> http://builds.appcelerator.com/mobile/master/mobilesdk-7.1.0.v20171130135012-osx.zip\r\n\r\nThe problem seems to be half resolved\r\nIn first post, the states (see photos) :\r\n- Before focus was OK --> Still OK\r\n- During focus was faulty --> Now it's OK\r\n- After focus was faulty --> Still faulty\r\n\r\nWhen I blur the search bar, the right part seems to go away exactly like the \"after focus\" before the fix", "updateAuthor": { "name": "geoffrey.noel", "key": "geoffrey.noel", "displayName": "geoffrey.noel", "active": true, "timeZone": "Europe/Paris" }, "created": "2017-12-01T16:41:46.000+0000", "updated": "2017-12-01T16:44:24.000+0000" }, { "id": "431642", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~geoffrey.noel] This PR is not merged yet. Once it get merged, the problem will get solved. This ticket is scheduled for \"Release 7.0.1\" . Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-04T03:18:48.000+0000", "updated": "2017-12-04T03:18:48.000+0000" }, { "id": "432058", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed. Searchbar correctly resizes correctly after gaining and losing focus.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-12-12T22:45:56.000+0000", "updated": "2017-12-12T22:45:56.000+0000" }, { "id": "432466", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.*\r\nVerified Fix in SDK version 7.0.1.v20171218104141 and 7.1.0.v20171220095337.\r\n\r\nTest and other information can be found at:\r\nPR (master) : https://github.com/appcelerator/titanium_mobile/pull/9635\r\nPR (7_0_X) : https://github.com/appcelerator/titanium_mobile/pull/9657", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-20T22:53:54.000+0000", "updated": "2017-12-20T22:53:54.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }