{ "id": "119985", "key": "TIMOB-15285", "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": "15939", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15940", "description": "2014 Sprint 07 SDK", "name": "2014 Sprint 07 SDK", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-04-02T19:19:24.000+0000", "created": "2013-09-16T06:34:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios7", "toolbar", "translucent", "triage" ], "versions": [], "issuelinks": [ { "id": "36367", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "124232", "key": "TIMOB-16094", "fields": { "summary": "iOS 7: Allow users to set negative spacer in Window NavButton", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:11:45.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": "When adding a Toolbar to a Window Navigation (win.rightNavButton = toolbar), the translucent effects are layering and rendering incorrectly - see the attached screenshot.\r\n\r\nAs far as I know the Toolbar added to the Window navigation bar is the correct way to have multiple icons in the top nav. This method is used by the native apps like Mail / Safari etc. \r\n\r\nIs there another method I should be using?\r\n\r\nIf not, can this be fixed so that the Toolbar when translucent renders correctly on top of the the already translucent navigation bar.", "attachment": [ { "id": "42586", "filename": "Screen Shot 2013-09-19 at 2.55.35 AM.png", "author": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2013-09-18T14:56:57.000+0000", "size": 11195, "mimeType": "image/png" }, { "id": "42502", "filename": "toolbar.png", "author": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2013-09-16T06:34:45.000+0000", "size": 13461, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: Translucent Toolbar in Translucent Navigation Group not rendering correctly", "creator": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "subtasks": [], "reporter": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "environment": "Ti SDK 3.1.3, Xcode 5", "comment": { "comments": [ { "id": "271324", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you please add a test case?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T18:29:44.000+0000", "updated": "2013-09-16T18:29:44.000+0000" }, { "id": "271741", "author": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "body": "Test case as requested, with screenshot of output attached:\n\n{code}\nvar win1 = Ti.UI.createWindow({\n\ttitle: 'Test',\n\t//includeOpaqueBars: true,\n\textendEdges: [1,4],\n\tnavBarTintColor: '#333',\n\tbackgroundColor:'white'\n});\n\nvar btnBookmarks = Ti.UI.createButton({\t\n\tsystemButton: Ti.UI.iPhone.SystemButton.BOOKMARKS,\n});\nvar btnAction = Ti.UI.createButton({\n\tsystemButton: Ti.UI.iPhone.SystemButton.ACTION\n});\t\nvar toolbar = Ti.UI.iOS.createToolbar({\n\titems:[btnBookmarks, btnAction],\n\ttop:0,\n\twidth: 265,\n\tright:0\n});\t\nwin1.rightNavButton = toolbar;\n\nvar button = Ti.UI.createButton({\n\theight:44,\n\twidth:200,\n\ttitle:L('openWindow'),\n\ttop:20\n});\nwin1.add(button);\n\nvar win2 = Ti.UI.createWindow({\n\ttitle: 'Test',\n\tbackgroundColor:'white'\n});\n\nvar button = Ti.UI.createButton({\n\theight:44,\n\twidth:200,\n\ttitle:L('openWindow'),\n\ttop:20\n});\nwin2.add(button);\n\nvar box1 = Ti.UI.createView({\n\theight:100,\n\twidth:720,\n\tleft: 15,\n\tbackgroundColor: 'red',\n\ttitle:L('openWindow'),\n\ttop:0\n});\nwin1.add(box1);\n\nvar box2 = Ti.UI.createView({\n\theight:100,\n\twidth:100,\n\tleft: 130,\n\tbackgroundColor: 'red',\n\ttitle:L('openWindow'),\n\ttop:450\n});\nwin1.add(box2);\n\n//create module instance\nvar tabs = Ti.UI.createTabGroup({\n\tstyleCSS: 'pixate:true',\n\ttranslucent: true\n});\n\nvar tab1 = Ti.UI.createTab({\n\ttitle: L('home'),\n\ticon: '/images/KS_nav_ui.png',\n\twindow: win1\n});\n\nvar tab2 = Ti.UI.createTab({\n\ttitle: L('settings'),\n\ticon: '/images/KS_nav_views.png',\n\twindow: win2\n});\n\ntabs.addTab(tab1);\ntabs.addTab(tab2);\n\ntabs.open();\n{code}", "updateAuthor": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2013-09-18T14:56:35.000+0000", "updated": "2013-09-18T14:56:35.000+0000" }, { "id": "275594", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "Isn't there a workaround at least? This is very problematic, given the (almost) mandatory translucency in iOS7.", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-18T08:32:08.000+0000", "updated": "2013-10-18T08:32:08.000+0000" }, { "id": "275660", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~vduggal], thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T16:29:09.000+0000", "updated": "2013-10-18T16:29:09.000+0000" }, { "id": "275689", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "Actually the problem lies in the fact that you have no support for {{[controller.navigationItem setRightBarButtonItems:animated:]}} as the way to set more than one element on the {right,left}Button area.", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-18T18:08:21.000+0000", "updated": "2013-10-18T18:08:21.000+0000" }, { "id": "275738", "author": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "body": "@Pier I think you hit the nail on the head there. If you search the Q&A forums, users have been struggling since version 1.0 with ways to implement multiple buttons in the navigation bar - and have had to fall back on hacks using Toolbars and ButtonBars. This has cost me tens of hours trying to work around this limitation and still make my apps look \"native\" down to the pixel on both iPad and iPhone.\r\n\r\nThe ability to add multiple buttons should be a basic feature - enabling us to easily mimic default app layouts like Mail etc. Using a Toolbar for example sounds like a quick \"hack-around\" but in reality the Toolbar is indented too far in from the left / right, so the buttons added are not sitting in quite the right place.\r\n\r\niOS 7 has just made this Titanium limitation more noticeable with the transparency issue.\r\n\r\nIt would be really great to see support for multiple elements in the right/left button areas. Finally.\r\n\r\nPS: Is there a ticket open about this? I will have a quick look...", "updateAuthor": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2013-10-18T21:32:32.000+0000", "updated": "2013-10-18T21:32:32.000+0000" }, { "id": "275748", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "In my company we use a (custom made) native module which simply overrides the setRightNavButton of TiUIWindowProxy with an Objective-C categroy, so that when you set a toolbar it simply takes out the items from it and uses them for the rightNavButton. Sounds interesting? :)", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-18T22:12:55.000+0000", "updated": "2013-10-18T22:27:36.000+0000" }, { "id": "275752", "author": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "body": "Yes very! Tell me more! matthew [at] imattsolutions [dot] com", "updateAuthor": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2013-10-18T22:20:30.000+0000", "updated": "2013-10-18T22:21:05.000+0000" }, { "id": "285723", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "To everyone looking for the ability to add more than one item in the right nav area, we're pleased to announce this small yet useful module: https://github.com/smclab/TiNavItems", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-24T10:02:58.000+0000", "updated": "2013-12-24T10:02:58.000+0000" }, { "id": "299635", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The fix for the issue here is to expose the leftBarButtonItems and rightBarButtonItems properties for navigationItem. That has been done as part of TIMOB-16094.\r\n\r\nOnce the PR is merged in you should be able to set multiple laft and right nav items using the Ti.UI.Window.leftNavButtons and Ti.UI.Window.rightNavButtons properties. For the test case attached here you could do something like\r\n\r\n{code}\r\nwin1.rightNavButtons = [btnBookmarks, btnAction];\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-02T19:19:24.000+0000", "updated": "2014-04-02T19:19:24.000+0000" }, { "id": "415092", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate and links to the related ticket have been provided above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:11:45.000+0000", "updated": "2017-03-22T22:11:45.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }