{ "id": "107936", "key": "TIMOB-12459", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-11T15:18:34.000+0000", "created": "2013-01-16T05:40:05.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "actionbar", "android", "exalture", "tabGroup" ], "versions": [], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-27T18:02:17.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Steps to reproduce\r\n1. Create a project in Studio using the tabbed application wizard, target SDK 3.0\r\n2. Change tiapp.xml to target Android SDK 11 or higher, tool-api level 15 or higher\r\n3. Titanium will replace old-style tabs with actionbar\r\n4. Add an options menu to the root ApplicationWindow.js:\r\n\r\n{code}\r\nself.activity.onCreateOptionsMenu = function(e){\r\ne.menu.clear();\r\nsaveSearch = e.menu.add({\r\ntitle: 'Remove',\r\nitemId : 1,\r\ngroupId : 0,\r\norder : 0});\r\n};\r\n{code}\r\n\r\nh6.Result\r\nThe options icons is correctly placed in the bar, but selecting it results in the menu option label being offset too far to the right\r\nTested on a Nexus 4, Jellybean 4.2.1\r\n\r\nIf I set the target SDK to lower than 11 and run the app again on the device, the old-style tabs return and the options menu is now located in the lower navigation bar, and works as expected.\r\n", "attachment": [ { "id": "34782", "filename": "Screenshot_2013-01-16-11-51-25.png", "author": { "name": "stevecarpenter", "key": "stevecarpenter", "displayName": "Steve Carpenter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-16T05:40:05.000+0000", "size": 27922, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: optionsMenu items are incorrectly placed", "creator": { "name": "stevecarpenter", "key": "stevecarpenter", "displayName": "Steve Carpenter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stevecarpenter", "key": "stevecarpenter", "displayName": "Steve Carpenter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 3.0\r\nTitanium Studio build: 3.0.2.201301081713\r\nAndroid OS 4.0+", "comment": { "comments": [ { "id": "241563", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with Google Nexus and Titanium SDK 3.1.0\r\n\r\nThe menu item shows up correctly.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-11T15:18:34.000+0000", "updated": "2013-03-11T15:18:34.000+0000" }, { "id": "415885", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T18:02:17.000+0000", "updated": "2017-03-27T18:02:17.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }