{ "id": "174267", "key": "TIMOB-27480", "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": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-12T22:10:09.000+0000", "created": "2019-10-17T09:27:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "engTriage", "ios", "tabbedbar" ], "versions": [ { "id": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" }, { "id": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-11-12T22:10:09.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": "Test with SDK *8.2.0.GA* on iPhone SE Simulator (*iOS 12.2* , *iOS 13.1*)\r\n\r\n*Code test*\r\n{code:js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar labels = ['1', '2', '3', 'LAST'];\r\nvar TabbedbBar = Ti.UI.createTabbedBar({\r\n labels : labels\r\n});\r\n\r\nwin.add(TabbedbBar);\r\nwin.open();\r\n\r\nsetTimeout(function(){\r\n TabbedbBar.index = labels.length - 1;\r\n}, 2000);\r\n{code}\r\n\r\nThis code work on iOS 12.2 simulator.\r\nThis code doesn't work on iOS 13.1 simulator.\r\n", "attachment": [ { "id": "67070", "filename": "ios12-2.png", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-10-17T09:26:51.000+0000", "size": 5771, "mimeType": "image/png" }, { "id": "67069", "filename": "ios13-1.png", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-10-17T09:26:51.000+0000", "size": 6120, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS : Setting last index of TabbedBar after initialization doesn't work", "creator": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "environment": "iOS\r\nSDK 8.2.0.GA\r\nSimulator iOS 12.2 - iOS 13.1", "comment": { "comments": [ { "id": "452117", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Tested it and can reproduce on {{8.2.1.v20191009074714}}. It looks like it does get selected, however, it does not get redrawn properly. Because when you click another item after the selection animation does happen properly.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-17T13:15:21.000+0000", "updated": "2019-10-17T13:15:34.000+0000" }, { "id": "452132", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This problem is in native app as well. Apple need to fix it. Until apple fixes it following changes will fix the issue-\r\n\r\nPR - https://github.com/appcelerator/titanium_mobile/pull/11288 ", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-17T20:11:09.000+0000", "updated": "2019-10-17T21:21:32.000+0000" }, { "id": "452178", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "Is there no possibility to temporarily insert this fix into a \"continuous integrations builds\" ?", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-10-22T07:11:02.000+0000", "updated": "2019-10-22T07:11:02.000+0000" }, { "id": "452208", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nicolomonili] This ticket is in review. Once PR get approved it'll get merged and you can get build. Meanwhile you can make the changes in your SDK as this is minor change.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-23T04:45:16.000+0000", "updated": "2019-10-23T04:45:16.000+0000" }, { "id": "452210", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "Usually i don't like to change the SDK manually ... in this case i can do a test being a simple change", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-10-23T07:41:59.000+0000", "updated": "2019-10-23T07:41:59.000+0000" }, { "id": "452211", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-10-23T07:43:28.000+0000", "updated": "2019-10-23T07:43:28.000+0000" }, { "id": "452212", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "I tried to manually edit the file *iphone/Classes/TiUIButtonBar.m*.\r\nThe fix doesn't work. Do i have to do anything other than edit that file?", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-10-23T08:20:09.000+0000", "updated": "2019-10-25T14:01:06.000+0000" }, { "id": "452321", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Last index of TabbedBar gets set when done after initialization.\r\nWaiting for Jenkins build to pass before merge.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-28T21:46:57.000+0000", "updated": "2019-10-28T21:47:36.000+0000" }, { "id": "452368", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-10-30T15:44:32.000+0000", "updated": "2019-10-30T15:44:32.000+0000" }, { "id": "452378", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.14.5\r\nSDK: 8.3.0.v20191030085531\r\nAppc CLI: 7.1.1\r\nJDK: 1.8.0_162\r\nNode: 10.5.0\r\nStudio: 5.1.4.201909061933\r\nXcode: 11.1\r\nDevice: iPhone X(v13.0), iPhone 7Plus(v12.3.1), iOS simulator 13.1, 12.2", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-30T17:50:58.000+0000", "updated": "2019-10-30T17:50:58.000+0000" }, { "id": "452416", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "In my situation the problem has not been solved. And I found the reason. \r\nTest code\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar labels1 = ['1', '2', '3', 'LAST'];\r\nvar labels2 = ['1', '2', '3', '4','5','LAST'];\r\nvar TabbedbBar1 = Ti.UI.createTabbedBar({\r\n labels : labels1,\r\n top : 30\r\n});\r\nvar TabbedbBar2 = Ti.UI.createTabbedBar({\r\n labels : labels2,\r\n top : 80\r\n});\r\nsetTimeout(function(){\r\n \r\n TabbedbBar1.labels = labels1; //try to remove this comment\r\n \r\n TabbedbBar1.index = labels1.length - 1;\r\n TabbedbBar2.index = labels2.length - 1;\r\n}, 2000);\r\nwin.add(TabbedbBar1,TabbedbBar2);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-11-01T11:17:48.000+0000", "updated": "2019-11-01T11:17:48.000+0000" }, { "id": "452417", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "In my case i have to update the labels value in some cases, and i noticed that doing this (at least the first time) creates problems with the index set. ", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-11-01T11:25:33.000+0000", "updated": "2019-11-01T11:25:33.000+0000" }, { "id": "452418", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "I can confirm above code breaks the TabbedBar. For some reason, updating TabbedBar1 breaks TabbedBar2 index setting for me (using CLI 7.1.1/SDK 8.3.0.v20191030085531)\r\n\r\nWhen removing the line that says \"try to remove this comment\" both will work fine for me.\r\n\r\n", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-11-01T11:30:18.000+0000", "updated": "2019-11-01T11:30:18.000+0000" }, { "id": "452592", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master) - https://github.com/appcelerator/titanium_mobile/pull/11324\r\nPR (8_3_X) - https://github.com/appcelerator/titanium_mobile/pull/11325", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-11T21:56:50.000+0000", "updated": "2019-11-11T21:56:50.000+0000" }, { "id": "452614", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build to pass.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-12T18:37:56.000+0000", "updated": "2019-11-12T18:37:56.000+0000" }, { "id": "452615", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master, 8_3_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-11-12T19:19:32.000+0000", "updated": "2019-11-12T19:19:32.000+0000" }, { "id": "452618", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.14.5\r\nSDK: 8.3.0.v20191112112455, 9.0.0.v20191112112437\r\nAppc CLI: 7.1.1\r\nJDK: 1.8.0_162\r\nNode: 10.5.0\r\nStudio: 5.1.4.201909061933\r\nXcode: 11.2\r\nDevice: iPhone X(v13.2), iPhone 7Plus(v12.3.1), iOS simulator 13.2, 12.4", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-12T22:10:09.000+0000", "updated": "2019-11-12T22:10:09.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }