{ "id": "87405", "key": "TIMOB-8478", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": null, "resolutiondate": null, "created": "2012-03-06T07:35:59.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:58.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Titanium uses the MGSplitView library, which fails to provide some functionality that the native iOS UISplitViewController component provides - namely tapping the menu button that displays the popover should also cause it to be hidden (i.e. it should toggle). It's also handy to be able to close the popover from code, for example when tapping a menu item that changes the detail view, and therefore the focus of the app. I've added this functionality, and am submitting it as a PR on Github - this issue is meant to complement the PR.\r\n\r\n---\r\n\r\nReproduction steps:\r\nApply the attached app.js file to a new Titanium Mobile project\r\nIn portrait orientation, tap the master button in the toolbar\r\nWith the popover displayed, tap the button again\r\n\r\nExpected result:\r\nThe popover is dismissed\r\n\r\nActual result:\r\nThe popover remains visible\r\n\r\n---\r\n\r\nAlso, With the patch in place:\r\nWith the popover visible, tap the 'Close popover' option in the master view table. The popover should be dismissed.", "attachment": [ { "id": "26052", "filename": "app.js", "author": { "name": "cmarvelley", "key": "cmarvelley", "displayName": "Craig Marvelley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-06T07:35:59.000+0000", "size": 863, "mimeType": "text/javascript" } ], "flagged": false, "summary": "iOS: Add functionality to enable iPad SplitWindow component to be toggled via menu button and closed programmatically.", "creator": { "name": "cmarvelley", "key": "cmarvelley", "displayName": "Craig Marvelley", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cmarvelley", "key": "cmarvelley", "displayName": "Craig Marvelley", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }