{ "id": "102509", "key": "TIMOB-11231", "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": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-11-05T20:07:51.000+0000", "created": "2012-10-02T09:42:04.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-07T21:29:37.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": "Appologies if this is wrong,\r\nI have asked this as a question and have not got an answer, so I guess it's a bug ?\r\n\r\nThe attached code works on ipad 5.1 simulator but NOT on iphone 5.1 simulator:\r\ni.e. debug messages on ipad simulator but NOT iphone simulator\r\n\r\n{code}\r\nvar mainWindow;\r\nvar topToolbar;\r\nvar leftButton, rightButton;\r\n\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nmainWindow = Titanium.UI.createWindow({\r\n\ttitle : 'iOS Toolbar Test',\r\n\tbackgroundColor : 'black',\r\n\tnavBarHidden : true,\r\n\tmodal : false,\r\n\tzIndex : 1,\r\n\texitOnClose : true\r\n});\r\n\r\n// Create buttons for interaction\r\nleftButton = Titanium.UI.createButton({\r\n\tstyle : Ti.UI.iPhone.SystemButtonStyle.DONE,\r\n\ttitle : 'Left'\r\n});\r\nleftButton.addEventListener('click', function(e) {\r\n\tTi.API.debug('leftButtonClickListener( ' + JSON.stringify(e) + ' )');\r\n});\r\nrightButton = Titanium.UI.createButton({\r\n\tstyle : Ti.UI.iPhone.SystemButtonStyle.DONE,\r\n\ttitle : 'Right'\r\n});\r\nrightButton.addEventListener('click', function(e) {\r\n\tTi.API.debug('rightButtonClickListener( ' + JSON.stringify(e) + ' )');\r\n});\r\n\r\ntitleLabel = Ti.UI.createLabel({\r\n\ttext : 'A Test Toolbar',\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontWeight : 'bold'\r\n\t},\r\n\tcolor : '#ffffff',\r\n\ttextAlign : 'center',\r\n\twidth : 400,\r\n});\r\nvar flexSpace = Ti.UI.createButton({\r\n\tsystemButton : Ti.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n\r\ntopToolbar = Titanium.UI.iOS.createToolbar({\r\n\titems : [leftButton, flexSpace, titleLabel, flexSpace, rightButton],\r\n\ttop : 0,\r\n\tborderTop : false,\r\n\tborderBottom : true,\r\n\ttranslucent : false,\r\n\tbackgroundColor : 'black',\r\n\tbarColor : '#000',\r\n\tzIndex : 50\r\n});\r\n\r\nmainWindow.add(topToolbar);\r\n\r\nmainWindow.open();\r\n{code}\r\n", "attachment": [ { "id": "32199", "filename": "app.js", "author": { "name": "davidpriceabannan", "key": "davidpriceabannan", "displayName": "David Price", "active": true, "timeZone": "Europe/London" }, "created": "2012-10-02T09:42:04.000+0000", "size": 2472, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "iOS: Toolbar button clicks not working in iphone simulator", "creator": { "name": "davidpriceabannan", "key": "davidpriceabannan", "displayName": "David Price", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "davidpriceabannan", "key": "davidpriceabannan", "displayName": "David Price", "active": true, "timeZone": "Europe/London" }, "environment": "Mac OSX 10.7.4, Titanium SDK 2.1.2.GA, iPad & iPhone Simulator 5.1, Titanium Studio, build: 2.1.2.201208301612, Xcode 4.4.1", "comment": { "comments": [ { "id": "221751", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on iOS 5.1, TiSDK 2.1.2 GA, 2.1.3 RC2, 3.0.0. Cleaned up code a little. In fact, it doesn't work on iPad for me either.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-02T18:18:54.000+0000", "updated": "2012-10-02T18:18:54.000+0000" }, { "id": "226188", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Remove the width property of the titleLabel and things should work fine. Basically since the width is set to 400, the titleLabel bounds overlap the two button bounds which makes it the lowermost view to receive touch events. \r\n\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T20:07:51.000+0000", "updated": "2012-11-05T20:07:51.000+0000" }, { "id": "421246", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, please open a new ticket if any more problems persist.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T21:29:37.000+0000", "updated": "2017-06-07T21:29:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }