{ "id": "154985", "key": "TIMOB-20423", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-03-22T05:23:34.000+0000", "created": "2016-02-18T03:14:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-23T22:36:22.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": "h6.Reproduce Step:\r\n\r\n1. Simply Run the code below\r\n2. You will notice that when focus first textfield, the keyboardToolbar is not displaying, only a blank took bar.\r\n3. But the second one works well.\r\n4. If there is only one textfield, it works well too.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: 'white',\r\n});\r\nvar view = Ti.UI.createView({\r\n\ttop: 0,\r\n});\r\n\r\n// Textfield 1\r\nvar textfield1 = Ti.UI.createTextField({\r\n\ttop: 20,\r\n\thintText: \"First Name\",\r\n});\r\nview.add(textfield1);\r\n\r\n// Textfield 2\r\nvar textfield2 = Ti.UI.createTextField({\r\n\ttop: 100,\r\n\thintText: \"Second Name\",\r\n});\r\nview.add(textfield2);\r\n\r\n// Tool Button\r\nvar next = Titanium.UI.createButton({\r\n\ttitle: 'Next',\r\n});\r\nvar prev = Ti.UI.createButton({\r\n\ttitle: 'Previous',\r\n});\r\nvar done = Ti.UI.createButton({\r\n\ttitle: 'Done',\r\n});\r\nvar flexSpace = Titanium.UI.createButton({\r\n\tsystemButton: Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n\r\n// create tool bar and add it into textfield\r\nvar toolbar1 = Ti.UI.iOS.createToolbar({\r\n\titems: [next, flexSpace, done],\r\n});\r\nvar toolbar2 = Ti.UI.iOS.createToolbar({\r\n\titems: [prev, next, flexSpace, done],\r\n});\r\ntextfield1.keyboardToolbar = toolbar1;\r\ntextfield2.keyboardToolbar = toolbar2;\r\n\r\nwin.add(view);\r\n\r\nwin.open();\r\n{code}\r\n\r\nIs there something wrong with test code? or a bug?\r\n", "attachment": [], "flagged": false, "summary": "iOS: KeyboardToolbar is not working well when there are more then one textfield", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "TI SDK 5.1.2\r\niOS 9.2\r\niPhone 6 plus", "closedSprints": [ { "id": 597, "state": "closed", "name": "2016 Sprint 06 SDK", "startDate": "2016-03-12T01:30:59.982Z", "endDate": "2016-03-26T00:30:00.000Z", "completeDate": "2016-03-28T03:38:09.726Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "377490", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can test and try on 5.2.0.RC?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-22T07:09:52.000+0000", "updated": "2016-02-22T07:09:52.000+0000" }, { "id": "378025", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Everyone: Did that work before, using older Ti-versions?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-26T23:41:15.000+0000", "updated": "2016-02-26T23:41:15.000+0000" }, { "id": "378026", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Update: The problem is, that you reference one button in two different toolbars. A simple fix is to create own buttons for each toolbar. Please let us know if that helps.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-26T23:47:29.000+0000", "updated": "2016-02-26T23:47:29.000+0000" }, { "id": "380324", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as there's no fixes required to implement the above.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-22T05:23:34.000+0000", "updated": "2016-03-22T05:23:34.000+0000" }, { "id": "415466", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:36:22.000+0000", "updated": "2017-03-23T22:36:22.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }